mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Merge pull request #2403 from jvonau/rfkill
selective rfkill unblock for raspbian
This commit is contained in:
commit
9b8882f145
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@ fi
|
||||||
# covers raspbian
|
# covers raspbian
|
||||||
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then
|
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then
|
||||||
RASPBIAN=1
|
RASPBIAN=1
|
||||||
|
if /usr/sbin/rfkill list wifi | grep -q "Soft blocked: yes" ; then
|
||||||
|
echo "unblocking WiFi"
|
||||||
|
rfkill unblock wifi
|
||||||
|
fi
|
||||||
SSID=`grep ssid /etc/wpa_supplicant/wpa_supplicant.conf | awk -F = '{print $2}' | sed -r s/\"// | sed -r s/\"//`
|
SSID=`grep ssid /etc/wpa_supplicant/wpa_supplicant.conf | awk -F = '{print $2}' | sed -r s/\"// | sed -r s/\"//`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue