config: ignore config parser errors
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Mar 2014 20:23:35 +0000 (22:23 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Mar 2014 20:23:37 +0000 (22:23 +0200)
This helps with keeping routers reachable when there are typos in the
network config.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
config.c

index 4fe72dc073f3ebb36c4fe47ef1f74e052849aec0..14a91a5f767069f72f2b227a8e0374dbbdf1a185 100644 (file)
--- a/config.c
+++ b/config.c
@@ -190,6 +190,7 @@ config_init_package(const char *config)
                ctx = uci_alloc_context();
                uci_ctx = ctx;
 
+               ctx->flags &= ~UCI_FLAG_STRICT;
                if (config_path)
                        uci_set_confdir(ctx, config_path);