From: Hans Dedecker Date: Thu, 12 Feb 2015 16:41:17 +0000 (+0100) Subject: netifd: Set interface device config when device has old settings X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d84111e1014c817653db92bcd8024ff1935b6be;p=oweals%2Fnetifd.git netifd: Set interface device config when device has old settings If interface device settings are removed in UCI they were not removed in the device settings; calling device_set_config when device settings are present solves this. Signed-off-by: Hans Dedecker --- diff --git a/config.c b/config.c index fa47b94..b0607dd 100644 --- a/config.c +++ b/config.c @@ -136,7 +136,7 @@ config_parse_interface(struct uci_section *s, bool alias) if (blob_len(b.head) == 0) return; - if (iface->device_config) + if (iface->device_config || dev->settings.flags) device_set_config(dev, dev->type, b.head); return; error_free_config: