From: Felix Fietkau Date: Wed, 12 Oct 2011 14:19:52 +0000 (+0200) Subject: if an interface is brought down by the proto handler and autostart is still active... X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=a12a0dcdd1b77a652d488ea3d1074e603bc78965;hp=aaa6302c203cf4fecf121f485f0cb0cf9bf067be if an interface is brought down by the proto handler and autostart is still active, restart the interface --- diff --git a/interface.c b/interface.c index 37b20cc..514b4d5 100644 --- a/interface.c +++ b/interface.c @@ -250,6 +250,8 @@ interface_proto_cb(struct interface_proto_state *state, enum interface_proto_eve mark_interface_down(iface); interface_handle_config_change(iface); + if (iface->autostart) + __interface_set_up(iface); break; case IFPEV_LINK_LOST: if (iface->state != IFS_UP)