summaryrefslogtreecommitdiffhomepage
path: root/interface.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-07 18:51:55 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-07 18:51:55 +0200
commit2152229c45f470a14dee33507b331ac38055e062 (patch)
treee23c22759d6dfa0edd1300aa77e7a6c283300139 /interface.c
parented1bbf2f3c9933e7088299704d9b6e9dd61f027d (diff)
add support for calls to a hotplug script on interface state changes
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index f7ec520..3820050 100644
--- a/interface.c
+++ b/interface.c
@@ -78,7 +78,7 @@ void interface_add_error(struct interface *iface, const char *subsystem,
static void
interface_event(struct interface *iface, enum interface_event ev)
{
- /* TODO */
+ interface_queue_event(iface, ev);
}
static void
@@ -282,6 +282,7 @@ interface_init(struct interface *iface, const char *name,
strncpy(iface->name, name, sizeof(iface->name) - 1);
INIT_LIST_HEAD(&iface->errors);
+ INIT_LIST_HEAD(&iface->hotplug_list);
iface->main_dev.cb = interface_cb;
iface->l3_dev = &iface->main_dev;