From b8e21616bcb422dac93ba6a3e5f4b4e78b4b30db Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 31 Aug 2014 15:03:20 +0200 Subject: interface: do not try to bring up an unavailable interface Signed-off-by: Felix Fietkau --- interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface.c b/interface.c index df04ce3..bebc30b 100644 --- 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; -- cgit v1.2.3