summaryrefslogtreecommitdiff
path: root/sibsac-vpn
diff options
context:
space:
mode:
Diffstat (limited to 'sibsac-vpn')
-rwxr-xr-xsibsac-vpn21
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
+