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 2317209b2442c8619adc7ed1a62f6eb87234a11f..ae0f9383f4fbea2c47843f9e161b48f5c0080f09 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)