diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-09 18:49:46 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-09 18:49:46 +0200 |
commit | 23880ff5333c3ca1da1250e8821091f6ae62f566 (patch) | |
tree | 531a40042877d2aee180bebeca3f8774437bffeb /interface-event.c | |
parent | 13cc3e23d947b0d1a19c08cd031becd2ed866264 (diff) |
add ubus events for interface up/down
Diffstat (limited to 'interface-event.c')
-rw-r--r-- | interface-event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/interface-event.c b/interface-event.c index ba7405a..4661143 100644 --- a/interface-event.c +++ b/interface-event.c @@ -7,6 +7,7 @@ #include "netifd.h" #include "interface.h" +#include "ubus.h" char *hotplug_cmd_path = DEFAULT_HOTPLUG_PATH; static struct interface *current; @@ -79,6 +80,7 @@ interface_queue_event(struct interface *iface, enum interface_event ev) enum interface_event last_ev; D(SYSTEM, "Queue hotplug handler for interface '%s'\n", iface->name); + netifd_ubus_interface_event(iface, ev == IFEV_UP); if (current == iface) last_ev = current_ev; else |