projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89ccd80
)
interface: suppress unnecessary device config overrides
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 24 Jan 2015 00:16:25 +0000
(
01:16
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 24 Jan 2015 00:16:28 +0000
(
01:16
+0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index 43b92057d343170e66fcf12d2d58e5c7fe6cf73e..4e91e1854e5bca3404e9b33f6077dea201750532 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-136,7
+136,8
@@
config_parse_interface(struct uci_section *s, bool alias)
if (blob_len(b.head) == 0)
return;
- device_set_config(dev, dev->type, b.head);
+ if (iface->device_config && dev->default_config)
+ device_set_config(dev, dev->type, b.head);
return;
error_free_config:
free(config);