summaryrefslogtreecommitdiff
path: root/files/common/sbin/test_vpn
diff options
context:
space:
mode:
Diffstat (limited to 'files/common/sbin/test_vpn')
-rwxr-xr-xfiles/common/sbin/test_vpn15
1 files changed, 0 insertions, 15 deletions
diff --git a/files/common/sbin/test_vpn b/files/common/sbin/test_vpn
deleted file mode 100755
index f69b5a7..0000000
--- a/files/common/sbin/test_vpn
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-TESTHOST=4.2.2.4
-ping -c 1 -w 5 -I tun0 $TESTHOST &>/dev/null
-
-if [ $? -ne 0 ] ; then
- // IP not reachable -> restart openvpn
- /etc/init.d/openvpn restart
- sleep 10
- // Test Again
- ping -c 1 -w 5 -I tun0 $TESTHOST &>/dev/null
- if [ $? -ne 0 ] ; then
- /etc/init.d/openvpn stop
- ifdown wan
- fi
-fi
contact: Jan Huwald // Impressum