aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-05-27 09:46:38 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-05-27 09:46:38 +0200
commit527c3fe841f4b302c042412c4cd1714fb4815d98 (patch)
tree956aacf752611fd1cc8c97cdbe335a9ed1907188
parentaeb6441da0a60e1e36e5cc4601e3562dc988ded8 (diff)
downloaddhcpcd-hook-openvpn-0.1.0.tar.gz
dhcpcd-hook-openvpn-0.1.0.tar.zst
Initial import0.1.0
-rw-r--r--40-openvpn11
1 files changed, 11 insertions, 0 deletions
diff --git a/40-openvpn b/40-openvpn
new file mode 100644
index 0000000..4cdc567
--- /dev/null
+++ b/40-openvpn
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "${reason}" in
+ BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
+ # send openvpn processes SIGUSR1 and make them reconnect
+ killall -USR1 openvpn
+ ;;
+ PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
+ # do nothing here...
+ ;;
+esac