From: Felix Fietkau Date: Tue, 1 Nov 2011 21:54:42 +0000 (+0100) Subject: mark hotplug-added devices as external X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b48b50c9669ecf3fdd3f50d662fbfd18b971014;p=oweals%2Fnetifd.git mark hotplug-added devices as external --- 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;