Last active
August 26, 2019 03:18
-
-
Save kobakou/a54f806bc3550e646a31837eafdab982 to your computer and use it in GitHub Desktop.
add notification
This file contains hidden or 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 | |
# set AccessPoint uniqe name for switch profile. | |
apname=SWing | |
if [ "`networksetup -getairportnetwork en0 | awk '{print $4}'`" = "$apname" ]; then | |
scselect Intra | |
osascript -e 'display notification "Intra" with title "NetProf"' | |
else | |
scselect Automatic | |
osascript -e 'display notification "Automatic" with title "NetProf"' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment