aboutsummaryrefslogtreecommitdiffstats
path: root/dispatch
diff options
context:
space:
mode:
Diffstat (limited to 'dispatch')
-rw-r--r--dispatch/dhcpcd11
-rwxr-xr-xdispatch/networkd3
-rwxr-xr-xdispatch/networkmanager5
3 files changed, 19 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
diff --git a/dispatch/networkd b/dispatch/networkd
new file mode 100755
index 0000000..591aecd
--- /dev/null
+++ b/dispatch/networkd
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+systemctl try-reload-or-restart pacredir.service
diff --git a/dispatch/networkmanager b/dispatch/networkmanager
new file mode 100755
index 0000000..146b585
--- /dev/null
+++ b/dispatch/networkmanager
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "${2}" = "up" ]; then
+ systemctl try-reload-or-restart pacredir.service
+fi