w improvement

master
RightToPrivacy 2022-09-21 22:38:59 -04:00
parent ca7030871f
commit 58fb36186c
1 changed files with 3 additions and 3 deletions

6
wipri
View File

@ -257,7 +257,7 @@ function maccheck() {
done
}
# w flag to mitigate wifi probe SSID leaks (seemed necessary - set it and forget it) ;)
# w flag to mitigate wifi SSID probe and other leak possibilities (seemed necessary - set it and forget it) ;)
# This can be used in wipri command, or installed as wipri boot service
# feel free to mix up different flags to run things how you like (don't forget the -d flag to set dev)
### NOTICE: if you use this w flag, be aware it turns wifi radio off if you aren't connected for x min - simply re-enable it if needed
@ -265,7 +265,7 @@ function watchdev() {
echo -e "${BLUE} Checking $netdev To Protect Against WiFi Saved SSID Probe Req Leaks${ENDCOLOR}\n"
while :
do
sleep 400 # time period to wait between checks
sleep 400 # time period to check dev status
dstatus=$(cat /sys/class/net/$netdev/operstate)
if [ "$dstatus" != "up" ]; then
sleep 20
@ -275,7 +275,7 @@ function watchdev() {
nmcli radio wifi off || echo -e "${RED}ERR FAILED TO TURN OFF RADIO${ENDCOLOR}\n"
echo -e "${GREEN}SUCCESSFULLY TURNED WIFI RADIO${ENDCOLOR} ${RED}OFF${ENDCOLOR}"
fi
continue
continue 2
fi
done
}