diff options
author | Christian Hesse <mail@eworm.de> | 2013-05-27 09:46:38 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-05-27 09:46:38 +0200 |
commit | 527c3fe841f4b302c042412c4cd1714fb4815d98 (patch) | |
tree | 956aacf752611fd1cc8c97cdbe335a9ed1907188 /40-openvpn | |
parent | aeb6441da0a60e1e36e5cc4601e3562dc988ded8 (diff) | |
download | dhcpcd-hook-openvpn-0.1.0.tar.gz dhcpcd-hook-openvpn-0.1.0.tar.zst |
Initial import0.1.0
Diffstat (limited to '40-openvpn')
-rw-r--r-- | 40-openvpn | 11 |
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 |