netifd: Check interface autostart parameter when handling interface state changes
[project/netifd.git] / interface.c
index 39460e4..4a3a725 100644 (file)
@@ -273,7 +273,7 @@ interface_check_state(struct interface *iface)
                }
                break;
        case IFS_DOWN:
-               if (iface->enabled && iface->link_state && !config_init)
+               if (iface->autostart && iface->enabled && iface->link_state && !config_init)
                        __interface_set_up(iface);
                break;
        default: