From 8516403759119ecfd33bce62b0b83d684e12687e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 16 Oct 2014 21:05:57 +0200 Subject: use variable names --- 40-openvpn | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2