From: Felix Fietkau Date: Sun, 31 Aug 2014 13:03:20 +0000 (+0200) Subject: interface: do not try to bring up an unavailable interface X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=b8e21616bcb422dac93ba6a3e5f4b4e78b4b30db interface: do not try to bring up an unavailable interface Signed-off-by: Felix Fietkau --- 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;