X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=config.c;h=8705c16accaa799dcd32e91bc3734838df89e2d5;hp=81cbd28180f42c817c139c2044d5425612ec7dcc;hb=216f718323126aa5b89b820363c20f49488cbba1;hpb=1c669b1e235dd6662a6165fe8bc6ae069da22de4 diff --git a/config.c b/config.c index 81cbd28..8705c16 100644 --- a/config.c +++ b/config.c @@ -215,7 +215,9 @@ config_init_interfaces(const char *name) ctx = uci_alloc_context(); uci_ctx = ctx; +#ifdef DUMMY_MODE uci_set_confdir(ctx, "./config"); +#endif if (uci_load(ctx, "network", &p)) { fprintf(stderr, "Failed to load network config\n");