aboutsummaryrefslogtreecommitdiffstats
path: root/dhcpcd/80-pacredir
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-10-31 19:23:50 +0100
committerGravatar Christian Hesse <mail@eworm.de>2013-10-31 19:23:50 +0100
commit4c50bfc7c8f6c1575586dde1d5053d72dc0b4937 (patch)
treeb6683d864c81b499365e8f3819c0919720893795 /dhcpcd/80-pacredir
parent64fbfb8c89723ddefd13e7850cb418023da919f5 (diff)
downloadpaccache-4c50bfc7c8f6c1575586dde1d5053d72dc0b4937.tar.gz
paccache-4c50bfc7c8f6c1575586dde1d5053d72dc0b4937.tar.zst
add dhcpcd hook that informs pacredir about reestablished connection
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