diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2015-02-12 17:41:17 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-02-17 15:12:05 +0100 |
commit | 4d84111e1014c817653db92bcd8024ff1935b6be (patch) | |
tree | a22557587ccf65da0d40cbe70b7283b9769eb996 | |
parent | 2af71375f7a03d78dc9e3e4155e59e51f17a8327 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |