1
0
Fork 0
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:
A Holt 2020-05-12 18:51:03 -04:00 committed by GitHub
commit 9b8882f145
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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