aboutsummaryrefslogtreecommitdiffstats
path: root/40-openvpn
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-09-14 21:21:14 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-09-14 21:21:14 +0200
commit25daba80f3b7f3b522cfb8dffc2d2e6202b6ffd9 (patch)
treeb521025f2382276498623f47bf5a98f7b9e2e382 /40-openvpn
parentfcbb9b79eefb751f23f29457677728d7a0abe6f3 (diff)
downloadnetworkmanager-dispatcher-openvpn-25daba80f3b7f3b522cfb8dffc2d2e6202b6ffd9.tar.gz
networkmanager-dispatcher-openvpn-25daba80f3b7f3b522cfb8dffc2d2e6202b6ffd9.tar.zst
add dispatcher script and Makefile
Diffstat (limited to '40-openvpn')
-rwxr-xr-x40-openvpn7
1 files changed, 7 insertions, 0 deletions
diff --git a/40-openvpn b/40-openvpn
new file mode 100755
index 0000000..0af45ca
--- /dev/null
+++ b/40-openvpn
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ "${2}" == "up" ]; then
+ if pgrep -x openvpn >/dev/null; then
+ kill -USR1 $(pgrep -x openvpn)
+ fi
+fi