fix vlans > 9 in the network config (#818)
authorFelix Fietkau <nbd@openwrt.org>
Fri, 6 Oct 2006 21:10:21 +0000 (21:10 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 6 Oct 2006 21:10:21 +0000 (21:10 +0000)
SVN-Revision: 4940

openwrt/package/base-files/default/etc/functions.sh

index 10c1496d837588ff1234fae28ccfcdb618b18dcd..c66c7601224c639334801770df55f0769fe0e3ff 100755 (executable)
@@ -15,7 +15,7 @@ if_valid () (
   ifconfig "$1" >&- 2>&- ||
   [ "${1%%[0-9]}" = "br" ] ||
   {
-    [ "${1%%[0-9]}" = "vlan" ] && ( 
+    [ "${1%%[0-9]*}" = "vlan" ] && ( 
       i=${1#vlan}
       hwname=$(nvram get vlan${i}hwname)
       hwaddr=$(nvram get ${hwname}macaddr)