mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-01-03 10:00:07 +09:00
Only write to rfkill files on Pi
This commit is contained in:
parent
85c51fed1e
commit
71f74289eb
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
raspi-config (20200727) buster; urgency=medium
|
||||
|
||||
* Disable initial rfkill for all platforms when setting wireless country
|
||||
|
||||
-- Simon Long <simon@raspberrypi.com> Mon, 27 Jul 2020 15:47:29 +0100
|
||||
|
||||
raspi-config (20200707) buster; urgency=medium
|
||||
|
||||
* Add boot ROM and boot order selection
|
||||
|
@ -559,9 +559,11 @@ do_wifi_country() {
|
||||
fi
|
||||
if hash rfkill 2> /dev/null; then
|
||||
rfkill unblock wifi
|
||||
for filename in /var/lib/systemd/rfkill/*:wlan ; do
|
||||
echo 0 > $filename
|
||||
done
|
||||
if is_pi ; then
|
||||
for filename in /var/lib/systemd/rfkill/*:wlan ; do
|
||||
echo 0 > $filename
|
||||
done
|
||||
fi
|
||||
fi
|
||||
if [ "$INTERACTIVE" = True ]; then
|
||||
whiptail --msgbox "Wireless LAN country set to $COUNTRY" 20 60 1
|
||||
|
Loading…
Reference in New Issue
Block a user