network config: ignore nonexistant interfaces
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Apr 2007 09:41:56 +0000 (09:41 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Apr 2007 09:41:56 +0000 (09:41 +0000)
SVN-Revision: 6819

package/base-files/files/lib/network/config.sh

index cab2e06..eee72c0 100755 (executable)
@@ -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