mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-12-04 22:24:17 +09:00
Setting Wi-Fi country no longer requires a reboot
This commit is contained in:
@@ -447,10 +447,15 @@ do_wifi_country() {
|
||||
else
|
||||
echo "country=$COUNTRY" > /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
fi
|
||||
if ! iw reg set "$COUNTRY" 2> /dev/null; then
|
||||
ASK_TO_REBOOT=1
|
||||
fi
|
||||
if [ -f /run/wifi-country-unset ] && hash rfkill 2> /dev/null; then
|
||||
rfkill unblock wifi
|
||||
fi
|
||||
if [ "$INTERACTIVE" = True ]; then
|
||||
whiptail --msgbox "Wi-fi country set to $COUNTRY" 20 60 1
|
||||
fi
|
||||
ASK_TO_REBOOT=1
|
||||
fi
|
||||
IFS=$oIFS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user