From: Hans Dedecker Date: Mon, 2 Feb 2015 15:11:22 +0000 (+0100) Subject: netifd: set current_config for simple devices when parsing device config X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=cc8c69f2533e3c85e3631f1371a4207c2d5becce;hp=500779b3750d8a7603401128f6eb4e942e684616 netifd: set current_config for simple devices when parsing device config 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 --- 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;