From 216f718323126aa5b89b820363c20f49488cbba1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 2 Oct 2011 18:38:58 +0200 Subject: only override the uci conf dir in dummy mode --- config.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.c') 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"); -- cgit v1.2.1