aboutsummaryrefslogtreecommitdiffstats
path: root/40-openvpn
diff options
context:
space:
mode:
Diffstat (limited to '40-openvpn')
-rwxr-xr-x40-openvpn5
1 files changed, 4 insertions, 1 deletions
diff --git a/40-openvpn b/40-openvpn
index 0af45ca..3df20dd 100755
--- a/40-openvpn
+++ b/40-openvpn
@@ -1,6 +1,9 @@
#!/bin/sh
-if [ "${2}" == "up" ]; then
+INTERFACE="${1}"
+STATUS="${2}"
+
+if [ "${STATUS}" == "up" ]; then
if pgrep -x openvpn >/dev/null; then
kill -USR1 $(pgrep -x openvpn)
fi