projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2af7137
)
netifd: Set interface device config when device has old settings
author
Hans Dedecker
<dedeckeh@gmail.com>
Thu, 12 Feb 2015 16:41:17 +0000
(17:41 +0100)
committer
Steven Barth
<steven@midlink.org>
Tue, 17 Feb 2015 14:12:05 +0000
(15:12 +0100)
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>
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index fa47b94177a5327ce9151aedbb259553d42ad67c..b0607ddda6d769a59db90d9d6f6844e6e30df398 100644
(file)
--- 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: