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

@ -559,6 +559,9 @@ do_wifi_country() {
fi fi
if hash rfkill 2> /dev/null; then 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 fi
if [ "$INTERACTIVE" = True ]; then if [ "$INTERACTIVE" = True ]; then
whiptail --msgbox "Wireless LAN country set to $COUNTRY" 20 60 1 whiptail --msgbox "Wireless LAN country set to $COUNTRY" 20 60 1