From: Felix Fietkau Date: Sat, 5 Apr 2014 17:57:37 +0000 (+0200) Subject: system-dummy: indicate link on present devices X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=52c919d0d38f3b788155de06b929d4e3449e1a72;p=oweals%2Fnetifd.git system-dummy: indicate link on present devices Signed-off-by: Felix Fietkau --- 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; }