diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-04-05 19:57:37 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-04-05 19:57:37 +0200 |
commit | 52c919d0d38f3b788155de06b929d4e3449e1a72 (patch) | |
tree | 3d085e27d526d1fc294e6b02efd579c45fade5f0 /system-dummy.c | |
parent | 386453cbc5cc8ecdfbe8c53ff8cd058945fd821b (diff) |
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.c | 4 |
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; } |