summaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-24 01:16:25 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-24 01:16:28 +0100
commitd788b74c31d95a13630b0d61f69c5bd3eab63ca4 (patch)
tree5f0c6eabb827dbca260c1a73caf9d2a2975ce934 /config.c
parent89ccd8055bb6c330bd9f883e37bbf36078d5d948 (diff)
interface: suppress unnecessary device config overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r--config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index 43b9205..4e91e18 100644
--- 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);