summaryrefslogtreecommitdiff
path: root/system-dummy.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-05 19:57:37 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-04-05 19:57:37 +0200
commit52c919d0d38f3b788155de06b929d4e3449e1a72 (patch)
tree3d085e27d526d1fc294e6b02efd579c45fade5f0 /system-dummy.c
parent386453cbc5cc8ecdfbe8c53ff8cd058945fd821b (diff)
downloadnetifd-52c919d0d38f3b788155de06b929d4e3449e1a72.tar.gz
system-dummy: indicate link on present devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'system-dummy.c')
-rw-r--r--system-dummy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/system-dummy.c b/system-dummy.c
index 3ab22b0..deb53ff 100644
--- a/system-dummy.c
+++ b/system-dummy.c
@@ -91,8 +91,10 @@ int system_if_check(struct device *dev)
{
dev->ifindex = 0;
- if (!strcmp(dev->ifname, "eth0"))
+ if (!strcmp(dev->ifname, "eth0")) {
device_set_present(dev, true);
+ device_set_link(dev, true);
+ }
return 0;
}