netifd: Set interface device config when device has old settings
[project/netifd.git] / config.c
index fa47b94..b0607dd 100644 (file)
--- 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: