summaryrefslogtreecommitdiffstats
path: root/src.etc/network/if-down.d/dhcpd
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-08-06 10:42:01 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-08-06 10:42:01 (EDT)
commit96a68750a1ba9791291a94db2f73d1c3b3ffdf20 (patch)
treed65925bb2b17ee2764ff2736ac2930a1c4d764a3 /src.etc/network/if-down.d/dhcpd
parent565110e81cafa811f2e354360ace081d7784c5f8 (diff)
Add networking hooks for udhcpd
Diffstat (limited to 'src.etc/network/if-down.d/dhcpd')
-rw-r--r--src.etc/network/if-down.d/dhcpd7
1 files changed, 7 insertions, 0 deletions
diff --git a/src.etc/network/if-down.d/dhcpd b/src.etc/network/if-down.d/dhcpd
new file mode 100644
index 0000000..b6ca719
--- /dev/null
+++ b/src.etc/network/if-down.d/dhcpd
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -eu
+
+if [ -f "/var/run/udhcpd.${IFACE}" ]; then
+ kill "$(cat "/var/run/udhcpd.${IFACE}")"
+fi