if an interface is brought down by the proto handler and autostart is still active...
[project/netifd.git] / interface.c
index 37b20cc..514b4d5 100644 (file)
@@ -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)