projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
interface: suppress unnecessary device config overrides
[project/netifd.git]
/
config.c
diff --git
a/config.c
b/config.c
index
43b9205
..
4e91e18
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);