From 120707c71eb49b3c5630cbd5ae877b1ab28dbaa2 Mon Sep 17 00:00:00 2001 From: nbd Date: Mon, 2 Apr 2007 09:41:56 +0000 Subject: [PATCH] network config: ignore nonexistant interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6819 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/network/config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/package/base-files/files/lib/network/config.sh b/package/base-files/files/lib/network/config.sh index cab2e06f0..eee72c0cd 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