system-dummy: indicate link on present devices
authorFelix Fietkau <nbd@openwrt.org>
Sat, 5 Apr 2014 17:57:37 +0000 (19:57 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 5 Apr 2014 17:57:37 +0000 (19:57 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
system-dummy.c

index 3ab22b0da2509ed5de05bc3b1c97a67096f03688..deb53ff6642c354146b3e707274b3fd262acae55 100644 (file)
@@ -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;
 }