X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=interface-hotplug.c;h=ba7405a8410534b3ae4b90e7995f3e8c131e4a83;hp=fff488a5730d3160287e15ebed461f71f3e1dff4;hb=943b0701d47a06fa80800e85a16914e8f2563ec8;hpb=ac95c5179ee5f50d97b4262a4fd0fe41db395d54 diff --git a/interface-hotplug.c b/interface-hotplug.c index fff488a..ba7405a 100644 --- a/interface-hotplug.c +++ b/interface-hotplug.c @@ -52,12 +52,16 @@ call_hotplug(void) current = list_first_entry(&pending, struct interface, hotplug_list); current_ev = current->hotplug_ev; list_del_init(¤t->hotplug_list); + + D(SYSTEM, "Call hotplug handler for interface '%s'\n", current->name); run_cmd(current->name, current_ev == IFEV_UP); } static void task_complete(struct uloop_process *proc, int ret) { + if (current) + D(SYSTEM, "Complete hotplug handler for interface '%s'\n", current->name); current = NULL; call_hotplug(); }