projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9f387
)
interface: do not try to bring up an unavailable interface
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 13:03:20 +0000
(15:03 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 31 Aug 2014 13:03:20 +0000
(15:03 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
interface.c
patch
|
blob
|
history
diff --git
a/interface.c
b/interface.c
index df04ce317ab946b0953884a101fccde3ac1f0fc9..bebc30be9275ca5f78cd096c2daac8a20c41b1e6 100644
(file)
--- a/
interface.c
+++ b/
interface.c
@@
-277,6
+277,9
@@
interface_check_state(struct interface *iface)
}
break;
case IFS_DOWN:
+ if (!iface->available)
+ return;
+
if (iface->autostart && iface->enabled && link_state && !config_init)
__interface_set_up(iface);
break;