aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-04-02 09:41:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-04-02 09:41:56 +0000
commit89fb2b680ee874254deda7c29cb84ecbd2583b00 (patch)
tree831ecd1dfc70aa7879370e891ea5810219a6cb47 /package/base-files
parent51a8ac3cd988aca4aa7091319b14a068ef6757b2 (diff)
downloadupstream-89fb2b680ee874254deda7c29cb84ecbd2583b00.tar.gz
upstream-89fb2b680ee874254deda7c29cb84ecbd2583b00.tar.bz2
upstream-89fb2b680ee874254deda7c29cb84ecbd2583b00.zip
network config: ignore nonexistant interfaces
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6819 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/network/config.sh1
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 cab2e06f0e..eee72c0cde 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