summaryrefslogtreecommitdiff
path: root/proto-shell.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-06-19 00:48:12 +0200
committerJo-Philipp Wich <jow@openwrt.org>2012-06-19 00:48:12 +0200
commitfa31a460d8cb59288c4324eb684bd3ce21e837c3 (patch)
treea291f5b3dd0f12a0b6d6efea077a983deb08bafd /proto-shell.c
parent0e9c6efa192418a02e182a4401da87cd51f4ac76 (diff)
downloadnetifd-fa31a460d8cb59288c4324eb684bd3ce21e837c3.tar.gz
proto-shell.c: mark device present after reclaiming it, fixes ubus network.device status call after the protocol has been reconnected
Diffstat (limited to 'proto-shell.c')
-rw-r--r--proto-shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto-shell.c b/proto-shell.c
index 2317209..ae0f938 100644
--- a/proto-shell.c
+++ b/proto-shell.c
@@ -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)