aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-10-16 21:05:57 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-10-16 21:05:57 +0200
commit8516403759119ecfd33bce62b0b83d684e12687e (patch)
tree9292bb45c3cc8036e52d01114ba19484705140c7
parent25daba80f3b7f3b522cfb8dffc2d2e6202b6ffd9 (diff)
downloadnetworkmanager-dispatcher-openvpn-8516403759119ecfd33bce62b0b83d684e12687e.tar.gz
networkmanager-dispatcher-openvpn-8516403759119ecfd33bce62b0b83d684e12687e.tar.zst
use variable names
-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