aboutsummaryrefslogtreecommitdiffstats
path: root/dispatch/dhcpcd
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch/dhcpcd')
-rw-r--r--dispatch/dhcpcd11
1 files changed, 11 insertions, 0 deletions
diff --git a/dispatch/dhcpcd b/dispatch/dhcpcd
new file mode 100644
index 0000000..b50cb87
--- /dev/null
+++ b/dispatch/dhcpcd
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "${reason}" in
+ BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
+ # inform pacredir about reestablished connection
+ systemctl try-reload-or-restart pacredir.service
+ ;;
+ PREINIT|EXPIRE|INFORM|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
+ # do nothing here...
+ ;;
+esac