diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-10-02 18:38:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-10-02 18:38:58 +0200 |
commit | 216f718323126aa5b89b820363c20f49488cbba1 (patch) | |
tree | bb1aaf719873bd0cb5847ef69760376d495331f5 /config.c | |
parent | 1c669b1e235dd6662a6165fe8bc6ae069da22de4 (diff) |
only override the uci conf dir in dummy mode
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); |