Skip to content

Commit 88141b5

Browse files
authored
VPN Menu 1.0
1 parent a9101dd commit 88141b5

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
## Version 1.0
4+
## Compiled by Kevin M. Cox
5+
6+
## Adds the VPN icon to the Menu Bar and sets options for users the first time they login
7+
## These settings can then be changed by users
8+
9+
# VPN Show Time Connected
10+
11+
/usr/bin/defaults write com.apple.networkConnect VPNShowTime -bool true
12+
13+
# VPN Show Status While Connecting
14+
15+
/usr/bin/defaults write com.apple.networkConnect VPNShowStatus -bool true
16+
17+
# Add VPN icon to Menu Bar
18+
19+
/usr/bin/defaults write com.apple.systemuiserver menuExtras -array-add "/System/Library/CoreServices/Menu Extras/VPN.menu"
20+
21+
# Restart the SystemUIServer so the VPN icon shows up right away
22+
23+
killall SystemUIServer -HUP

0 commit comments

Comments
 (0)