summaryrefslogtreecommitdiffstats
path: root/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2013-06-06 12:38:15 +0000
committerRoy Marples <roy@marples.name>2013-06-06 12:38:15 +0000
commitce289a66faab77033b7c43592ad4d5c17c64b97c (patch)
tree14210799343b0016e567ce6f23addbe5db4e9c5d /dhcpcd.c
parent91b57dee9298697069a16cb42cf7c99165fc622e (diff)
downloaddhcpcd-ce289a66faab77033b7c43592ad4d5c17c64b97c.tar.xz
Add DEPARTED reason for when an interface is removed.
Diffstat (limited to 'dhcpcd.c')
-rw-r--r--dhcpcd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dhcpcd.c b/dhcpcd.c
index 087e149b..7d95228f 100644
--- a/dhcpcd.c
+++ b/dhcpcd.c
@@ -516,8 +516,10 @@ handle_interface(int action, const char *ifname)
if (action == -1) {
ifp = find_interface(ifname);
- if (ifp != NULL)
+ if (ifp != NULL) {
stop_interface(ifp);
+ script_runreason(ifp, "DEPARTED");
+ }
return;
}