From: Felix Fietkau Date: Sat, 24 Jan 2015 00:16:25 +0000 (+0100) Subject: interface: suppress unnecessary device config overrides X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d788b74c31d95a13630b0d61f69c5bd3eab63ca4;p=oweals%2Fnetifd.git interface: suppress unnecessary device config overrides Signed-off-by: Felix Fietkau --- 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);