Skip to content

Commit

Permalink
also check for hard blocked wifi
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 3, 2023
1 parent 51e7b77 commit 236da57
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ CheckSSID()
ip addr flush "$wifidev"
ip link set dev "$wifidev" down
rm -r /var/run/wpa_supplicant >/dev/null 2>&1
createAdHocNetwork
createAdHocNetwork
else #"No SSID, activating Hotspot"
createAdHocNetwork
fi
fi
}

CheckDevice
if rfkill list wifi | grep -i "Soft blocked: no" > /dev/null 2>&1 ; then
if (rfkill list wifi -rno HARD,SOFT | grep -i "unblocked.*unblocked") >/dev/null 2>&1 ; then
FindSSID
CheckSSID
else
Expand Down

0 comments on commit 236da57

Please sign in to comment.