device: apply config changes from device sections
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jan 2015 23:42:20 +0000 (00:42 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jan 2015 23:42:20 +0000 (00:42 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
config.c

index 90ec979d761c042c0c803ca82928f4779ab719bd..8b6a5ba801beb31ee285f1765ca0523f2c64e50f 100644 (file)
--- a/config.c
+++ b/config.c
@@ -217,7 +217,7 @@ config_init_devices(void)
                        if (!dev)
                                continue;
 
-                       device_set_config(dev, dev->type, b.head);
+                       device_apply_config(dev, dev->type, blob_memdup(b.head));
                }
                dev->default_config = false;
        }