fixed bug in w

master
RightToPrivacy 2022-09-23 17:19:54 -04:00
parent 74064b7f0c
commit a75351bc92
1 changed files with 2 additions and 2 deletions

4
wipri
View File

@ -256,7 +256,7 @@ function maccheck() {
done
}
# for w
# for w - EXPERIMENTAL - working on this
function watchdev() {
echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n"
while :
@ -265,7 +265,7 @@ function watchdev() {
dstatus=$(cat /sys/class/net/$netdev/operstate)
if [ "$dstatus" != "up" ]; then
sleep 20
if ["$dstatus" != "up" ]; then
if [ "$dstatus" != "up" ]; then
echo -e "${GREEN}$netdev${ENDCOLOR} ${RED}NOT CONNECTED...${ENDCOLOR}\n" && sleep .5
echo -e "${BLUE}Turning WiFi Radio $netdev${ENDCOLOR} ${RED}OFF${ENDCOLOR} to prevent WiFi Probe Req SSID leaks${ENDCOLOR}\n" && sleep .5
nmcli radio wifi off || echo -e "${RED}ERR FAILED TO TURN OFF RADIO - requires nmcli${ENDCOLOR}\n"