discover/network: In static config mode, only configure defined interfaces
[petitboot] / discover / network.c
index 6a1575f132ee306a1ba67db728226aa75bbd971c..bc7e186a1921e8531bb2fd37ed026f5e47e5977e 100644 (file)
@@ -547,8 +547,8 @@ struct network *network_init(struct device_handler *handler,
        network = talloc(handler, struct network);
        list_init(&network->interfaces);
        network->handler = handler;
-       network->manual_config = false;
        network->dry_run = dry_run;
+       network->manual_config = config_get()->network.n_interfaces != 0;
 
        network_init_dns(network);