[OpenWrt-Devel,1/3] netifd: set current_config for simple devices when parsing device config
diff mbox

Message ID 1422889884-3096-1-git-send-email-dedeckeh@gmail.com
State Accepted
Headers show

Commit Message

Hans Dedecker Feb. 2, 2015, 3:11 p.m. UTC
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@gmail.com>
---
 config.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox

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;