mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +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
|
||||
if [ -f /etc/wpa_supplicant/wpa_supplicant.conf ]; then
|
||||
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/\"//`
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue