summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-12 23:46:32 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-07-12 23:46:32 +0200
commitc153c9fa422da41fc6acd07dc5336b4abb6b1814 (patch)
tree8034d68f396930a964afe29f3391af1306447f25
parenta2bc078dd3187752d18163266ccbf6c40803d5c9 (diff)
apply basic device settings for hotplug devices, e.g. mtu and txqueuelen
-rw-r--r--ubus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ubus.c b/ubus.c
index 0f19607..0d23b77 100644
--- a/ubus.c
+++ b/ubus.c
@@ -564,6 +564,10 @@ netifd_iface_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
if (add) {
device_set_present(dev, true);
+ if (iface->device_config)
+ device_set_config(dev, &simple_device_type, iface->config);
+
+ system_if_apply_settings(dev, &dev->settings);
ret = interface_add_link(iface, dev);
} else {
ret = interface_remove_link(iface, dev);