From 30012dbda6ac6fd4e2f11707c93aedd8ef7b86b6 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 25 Sep 2013 19:29:06 +0600 Subject: Update. --- sibsac-vpn | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sibsac-vpn') 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 -- cgit v1.2.3