mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Disable initial rfkill on all platforms when setting wireless country
This commit is contained in:
parent
5a7f883d76
commit
85c51fed1e
@ -558,7 +558,10 @@ do_wifi_country() {
|
|||||||
ASK_TO_REBOOT=1
|
ASK_TO_REBOOT=1
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user