Created
August 11, 2021 03:48
-
-
Save fionn/5fd8169f0b734f1c560283016ba71684 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "You must be root" | |
exit 1 | |
fi | |
service="Wi-Fi" | |
while true; do | |
pkill -9 -P 1 Zscaler && \ | |
networksetup -setautoproxystate $service off | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment