From: Steven Barth Date: Wed, 23 Jul 2014 16:06:47 +0000 (+0200) Subject: Set DEVICE for legacy ifupdate event as well X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7c5d5bb952cff9fe57d0f4805cc2286318868e02;p=project%2Fnetifd.git Set DEVICE for legacy ifupdate event as well Signed-off-by: Steven Barth --- diff --git a/interface-event.c b/interface-event.c index 1c8134f..24af8f5 100644 --- a/interface-event.c +++ b/interface-event.c @@ -83,7 +83,7 @@ call_hotplug(void) current_ev = current->hotplug_ev; list_del_init(¤t->hotplug_list); - if (current_ev == IFEV_UP && current->l3_dev.dev) + if ((current_ev == IFEV_UP || current_ev == IFEV_UPDATE) && current->l3_dev.dev) device = current->l3_dev.dev->ifname; D(SYSTEM, "Call hotplug handler for interface '%s', event '%s' (%s)\n",