X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=config.c;h=132ec430a57066957f70dbe8b412f3eafaf3d615;hb=b0720e584f750073a4bc81c889abdaf08983e0ce;hp=8b6a5ba801beb31ee285f1765ca0523f2c64e50f;hpb=02f05f3755fec2ee8c078b13ad1570bc941a8f72;p=project%2Fnetifd.git diff --git a/config.c b/config.c index 8b6a5ba..132ec43 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->settings.flags) + device_apply_config(dev, dev->type, b.head); return; error_free_config: free(config); @@ -217,7 +218,8 @@ config_init_devices(void) if (!dev) continue; - device_apply_config(dev, dev->type, blob_memdup(b.head)); + dev->current_config = true; + device_apply_config(dev, dev->type, b.head); } dev->default_config = false; }