From: Felix Fietkau Date: Mon, 31 Mar 2014 20:23:35 +0000 (+0200) Subject: config: ignore config parser errors X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=386453cbc5cc8ecdfbe8c53ff8cd058945fd821b;hp=f1e5b2292ea452af8d46267f4bbcc515841963ce config: ignore config parser errors This helps with keeping routers reachable when there are typos in the network config. Signed-off-by: Felix Fietkau --- diff --git a/config.c b/config.c index 4fe72dc..14a91a5 100644 --- 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);