summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-11-01 22:54:42 +0100
committerFelix Fietkau <nbd@openwrt.org>2011-11-01 22:54:42 +0100
commit1b48b50c9669ecf3fdd3f50d662fbfd18b971014 (patch)
treeb9c4c8a62b29379e227039b6ba388f5f372f25b1 /ubus.c
parent6803aef644a5112f331e6de4d37d78718b76a9bf (diff)
mark hotplug-added devices as external
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index c729c5d..ce82a52 100644
--- a/ubus.c
+++ b/ubus.c
@@ -302,7 +302,7 @@ netifd_iface_handle_device(struct ubus_context *ctx, struct ubus_object *obj,
} else
main_dev = iface->main_dev.dev;
- dev = device_get(blobmsg_data(tb[DEV_NAME]), add);
+ dev = device_get(blobmsg_data(tb[DEV_NAME]), add ? 2 : 0);
if (!dev && (main_dev || add)) {
ret = UBUS_STATUS_NOT_FOUND;
goto out;