From 1b48b50c9669ecf3fdd3f50d662fbfd18b971014 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 1 Nov 2011 22:54:42 +0100 Subject: [PATCH] mark hotplug-added devices as external --- ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1