From d788b74c31d95a13630b0d61f69c5bd3eab63ca4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 24 Jan 2015 01:16:25 +0100 Subject: [PATCH] interface: suppress unnecessary device config overrides Signed-off-by: Felix Fietkau --- config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.25.1