Disable initial rfkill on all platforms when setting wireless country

This commit is contained in:
Simon Long 2020-07-27 15:47:15 +01:00
parent 5a7f883d76
commit 85c51fed1e

View File

@ -558,7 +558,10 @@ do_wifi_country() {
ASK_TO_REBOOT=1
fi
if hash rfkill 2> /dev/null; then
rfkill unblock wifi
rfkill unblock wifi
for filename in /var/lib/systemd/rfkill/*:wlan ; do
echo 0 > $filename
done
fi
if [ "$INTERACTIVE" = True ]; then
whiptail --msgbox "Wireless LAN country set to $COUNTRY" 20 60 1