diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-08-31 15:03:20 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-08-31 15:03:20 +0200 |
commit | b8e21616bcb422dac93ba6a3e5f4b4e78b4b30db (patch) | |
tree | 39dc7e4f63183e944ccb9a32957b64d5ca412342 /interface.c | |
parent | 9f9f387e14300de1ad517bf57273722c54ba5d7f (diff) |
interface: do not try to bring up an unavailable interface
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |