From a12a0dcdd1b77a652d488ea3d1074e603bc78965 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 12 Oct 2011 16:19:52 +0200 Subject: [PATCH] if an interface is brought down by the proto handler and autostart is still active, restart the interface --- interface.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.25.1