diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-11-01 22:54:42 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-11-01 22:54:42 +0100 |
commit | 1b48b50c9669ecf3fdd3f50d662fbfd18b971014 (patch) | |
tree | b9c4c8a62b29379e227039b6ba388f5f372f25b1 /ubus.c | |
parent | 6803aef644a5112f331e6de4d37d78718b76a9bf (diff) |
mark hotplug-added devices as external
Diffstat (limited to 'ubus.c')
-rw-r--r-- | ubus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |