summaryrefslogtreecommitdiffhomepage
path: root/interface-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'interface-event.c')
-rw-r--r--interface-event.c2
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