Created
January 16, 2020 18:45
-
-
Save a-b/123ede4db23e49935f8835019afd13c6 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
function gp() { | |
printf "GlobalProtect: " | |
case $1 in | |
on) | |
echo ON | |
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist | |
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist | |
;; | |
*) | |
echo OFF | |
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist | |
launchctl unload /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist | |
;; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment