summaryrefslogtreecommitdiffstats
path: root/dhcpcd/80-pacredir
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpcd/80-pacredir')
-rwxr-xr-xdhcpcd/80-pacredir11
1 files changed, 11 insertions, 0 deletions
diff --git a/dhcpcd/80-pacredir b/dhcpcd/80-pacredir
new file mode 100755
index 0000000..50bed5c
--- /dev/null
+++ b/dhcpcd/80-pacredir
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "${reason}" in
+ BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
+ # inform pacredir about reestablished connection
+ kill -HUP $(pgrep pacredir)
+ ;;
+ PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
+ # do nothing here...
+ ;;
+esac