Skip to content

Commit

Permalink
v9.8
Browse files Browse the repository at this point in the history
- DietPi-Set_hardware | On Orange Pi 3B/Zero 3/Zero 2W, enable Bluetooth and WiFi modules via /etc/modules-load.d as well if loading them via modprobe fails. In some cases it does, while succeeds during boot, and there is no harm to just try it, even if the module is not present at all.
  • Loading branch information
MichaIng committed Oct 10, 2024
1 parent e857d43 commit 6970aa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dietpi/func/dietpi-set_hardware
Original file line number Diff line number Diff line change
Expand Up @@ -1263,7 +1263,7 @@ Do you want to continue and disable the serial login console?' || return 1
# Orange Pi 3B/Zero 3/Zero 2W: Module does not load automatically
elif [[ $G_HW_MODEL =~ ^(83|87|88)$ ]]
then
modprobe -n sprdbt_tty 2> /dev/null && G_EXEC eval 'echo '\''sprdbt_tty'\'' > /etc/modules-load.d/dietpi-enable_bluetooth.conf'
G_EXEC eval 'echo '\''sprdbt_tty'\'' > /etc/modules-load.d/dietpi-enable_bluetooth.conf'
G_AG_CHECK_INSTALL_PREREQ sprd-bluetooth
fi

Expand Down Expand Up @@ -1407,7 +1407,7 @@ Do you want to continue and disable the serial login console?' || return 1
# - Orange Pi 3B/Zero 3/Zero 2W: Module does not load automatically
elif [[ $G_HW_MODEL =~ ^(83|87|88)$ ]]
then
modprobe -n sprdwl_ng 2> /dev/null && G_EXEC eval 'echo '\''sprdwl_ng'\'' > /etc/modules-load.d/dietpi-enable_wifi.conf'
G_EXEC eval 'echo '\''sprdwl_ng'\'' > /etc/modules-load.d/dietpi-enable_wifi.conf'
fi

# Remove blacklists
Expand Down

0 comments on commit 6970aa6

Please sign in to comment.