diff options
Diffstat (limited to 'sibsac-vpn')
| -rwxr-xr-x | sibsac-vpn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sibsac-vpn b/sibsac-vpn new file mode 100755 index 0000000..7fb26bf --- /dev/null +++ b/sibsac-vpn @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +if [[ $(/usr/bin/id -u) -ne 0 ]] ; then + echo Not running as root + exit +fi + +echo Connection to the VPN +vpnc sibsac + +echo Press any key to disconnect ... + +read $disconnect + +echo Disconnection from the VPN +vpnc-disconnect + +echo VPN should now be disconnected + |
