diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 01:16:25 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 01:16:28 +0100 |
commit | d788b74c31d95a13630b0d61f69c5bd3eab63ca4 (patch) | |
tree | 5f0c6eabb827dbca260c1a73caf9d2a2975ce934 /config.c | |
parent | 89ccd8055bb6c330bd9f883e37bbf36078d5d948 (diff) |
interface: suppress unnecessary device config overrides
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |