summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2015-02-12 17:41:17 +0100
committerSteven Barth <steven@midlink.org>2015-02-17 15:12:05 +0100
commit4d84111e1014c817653db92bcd8024ff1935b6be (patch)
treea22557587ccf65da0d40cbe70b7283b9769eb996
parent2af71375f7a03d78dc9e3e4155e59e51f17a8327 (diff)
netifd: Set interface device config when device has old settings
If interface device settings are removed in UCI they were not removed in the device settings; calling device_set_config when device settings are present solves this. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index fa47b94..b0607dd 100644
--- a/config.c
+++ b/config.c
@@ -136,7 +136,7 @@ config_parse_interface(struct uci_section *s, bool alias)
if (blob_len(b.head) == 0)
return;
- if (iface->device_config)
+ if (iface->device_config || dev->settings.flags)
device_set_config(dev, dev->type, b.head);
return;
error_free_config: