projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
386453c
)
system-dummy: indicate link on present devices
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 5 Apr 2014 17:57:37 +0000
(19:57 +0200)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/system-dummy.c
b/system-dummy.c
index 3ab22b0da2509ed5de05bc3b1c97a67096f03688..deb53ff6642c354146b3e707274b3fd262acae55 100644
(file)
--- 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;
}