fix: gp-stop-start
This commit is contained in:
@@ -15,24 +15,19 @@
|
|||||||
# @raycast.author MrRaph_
|
# @raycast.author MrRaph_
|
||||||
# @raycast.authorURL https://git.mrraph.fr
|
# @raycast.authorURL https://git.mrraph.fr
|
||||||
|
|
||||||
|
message="Error"
|
||||||
|
|
||||||
case $1 in
|
case ${1} in
|
||||||
start)
|
start)
|
||||||
echo "Starting GlobalProtect..."
|
|
||||||
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
|
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
|
||||||
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
|
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
|
||||||
echo "GP Started !"
|
message="GP Started !"
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
echo "Stopping GlobalProtect..."
|
|
||||||
launchctl remove com.paloaltonetworks.gp.pangps
|
launchctl remove com.paloaltonetworks.gp.pangps
|
||||||
launchctl remove com.paloaltonetworks.gp.pangpa
|
launchctl remove com.paloaltonetworks.gp.pangpa
|
||||||
echo "GP Stopped !"
|
message="GP Stopped !"
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "'$1' is not a valid verb."
|
|
||||||
echo "Usage: $0 {start|stop}"
|
|
||||||
exit 2
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
|
||||||
|
echo $message
|
||||||
Reference in New Issue
Block a user