summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-09 19:18:07 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-09 19:18:07 +0200
commit07eab1f9d3b7eb6ed25b01b3b552d1e77aba1dc5 (patch)
tree7cf92413a3dd929899982ad0ce844219491aa3b1 /system-linux.c
parent11bd51d22596cf26be9ba486d52ef336b4035cae (diff)
system-linux: set the device present state in system_if_check()
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/system-linux.c b/system-linux.c
index 488f5be..d7030fb 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -189,7 +189,8 @@ int system_if_down(struct device *dev)
int system_if_check(struct device *dev)
{
- return -!(system_if_resolve(dev));
+ device_set_present(dev, (system_if_resolve(dev) >= 0));
+ return 0;
}
static int system_addr(struct device *dev, struct device_addr *addr, int cmd)