proto-shell.c: mark device present after reclaiming it, fixes ubus network.device...
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jun 2012 22:48:12 +0000 (00:48 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 18 Jun 2012 22:48:12 +0000 (00:48 +0200)
proto-shell.c

index 2317209..ae0f938 100644 (file)
@@ -455,6 +455,7 @@ proto_shell_update_link(struct proto_shell_state *state, struct blob_attr *data,
 
                interface_set_l3_dev(iface, dev);
                device_claim(&iface->l3_dev);
+               device_set_present(dev, true);
        }
 
        if (!keep)