[OpenWrt-Devel] [PATCH 1/3] netifd: set current_config for simple devices when parsing device config
Hans Dedecker
dedeckeh at gmail.com
Mon Feb 2 10:11:22 EST 2015
If currrent_config is not set when the simple device config is applied the
device will be deleted in device_reset_old
Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
config.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/config.c b/config.c
index 4e91e18..22dd835 100644
--- a/config.c
+++ b/config.c
@@ -218,6 +218,7 @@ config_init_devices(void)
if (!dev)
continue;
+ dev->current_config = true;
device_apply_config(dev, dev->type, b.head);
}
dev->default_config = false;
--
1.9.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list