diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-04-02 09:41:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-04-02 09:41:56 +0000 |
commit | 478ee4a13518b4966ee0d4dc52ed9db667c30df1 (patch) | |
tree | b77572e27e51c771cef70bf11a0cbca207e8bc37 /package/base-files/files/lib | |
parent | 64a525eddb6f8a02e8b9afe92a05c51191af9d2e (diff) | |
download | mtk-20170518-478ee4a13518b4966ee0d4dc52ed9db667c30df1.zip mtk-20170518-478ee4a13518b4966ee0d4dc52ed9db667c30df1.tar.gz mtk-20170518-478ee4a13518b4966ee0d4dc52ed9db667c30df1.tar.bz2 |
network config: ignore nonexistant interfaces
SVN-Revision: 6819
Diffstat (limited to 'package/base-files/files/lib')
-rwxr-xr-x | package/base-files/files/lib/network/config.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index cab2e06..eee72c0 100755 --- a/package/base-files/files/lib/network/config.sh +++ b/package/base-files/files/lib/network/config.sh @@ -84,6 +84,7 @@ prepare_interface() { # Setup VLAN interfaces add_vlan "$iface" + ifconfig "$iface" 2>/dev/null >/dev/null || return 0 # Setup bridging config_get iftype "$config" type |