summaryrefslogtreecommitdiff
path: root/sibsac-vpn
diff options
context:
space:
mode:
Diffstat (limited to 'sibsac-vpn')
-rwxr-xr-xsibsac-vpn9
1 files changed, 2 insertions, 7 deletions
diff --git a/sibsac-vpn b/sibsac-vpn
index 7fb26bf..d139a42 100755
--- a/sibsac-vpn
+++ b/sibsac-vpn
@@ -2,20 +2,15 @@
set -e
-if [[ $(/usr/bin/id -u) -ne 0 ]] ; then
- echo Not running as root
- exit
-fi
-
echo Connection to the VPN
-vpnc sibsac
+sudo /usr/sbin/vpnc sibsac
echo Press any key to disconnect ...
read $disconnect
echo Disconnection from the VPN
-vpnc-disconnect
+sudo /usr/sbin/vpnc-disconnect
echo VPN should now be disconnected