From: Felix Fietkau Date: Fri, 29 Jul 2016 17:47:32 +0000 (+0200) Subject: interface: do not process hotplug events for link up event X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=656c387974879105c2aaec6b62478d0195067f2d interface: do not process hotplug events for link up event Signed-off-by: Felix Fietkau --- diff --git a/interface-event.c b/interface-event.c index d370cae..93da22b 100644 --- a/interface-event.c +++ b/interface-event.c @@ -124,6 +124,10 @@ interface_queue_event(struct interface *iface, enum interface_event ev) netifd_ubus_interface_notify(iface, ev != IFEV_DOWN); + /* no hotplug.d calls for link up */ + if (ev == IFEV_LINK_UP) + return; + if (current == iface) { /* an event for iface is being processed */ if (!list_empty(&iface->hotplug_list)) {