mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
Enable wifi regardless of whether /run/wifi-country-unset exists
This commit is contained in:
parent
0038aaeb18
commit
3729cabb4d
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
raspi-config (20190429) buster; urgency=medium
|
||||
|
||||
* Update do_wifi_country
|
||||
- Enable wifi regardless of whether /run/wifi-country-unset exists
|
||||
-- Serge Schneider <serge@raspberrypi.org> Mon, 29 Apr 2019 14:52:56 +0100
|
||||
|
||||
raspi-config (20190424) stretch; urgency=medium
|
||||
|
||||
* Add Compton option to advanced options
|
||||
|
@ -460,16 +460,16 @@ do_wifi_country() {
|
||||
fi
|
||||
if [ $? -eq 0 ];then
|
||||
wpa_cli -i "$IFACE" set country "$COUNTRY"
|
||||
wpa_cli -i "$IFACE" save_config > /dev/null 2>&1
|
||||
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
|
||||
if 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
|
||||
wpa_cli -i "$IFACE" save_config > /dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user