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.librecmc.org/?a=commitdiff_plain;h=a12a0dcdd1b77a652d488ea3d1074e603bc78965;p=oweals%2Fnetifd.git 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)