From: Felix Fietkau Date: Fri, 6 Oct 2006 21:10:21 +0000 (+0000) Subject: fix vlans > 9 in the network config (#818) X-Git-Tag: whiterussian_rc6~109 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=35a882f626cc3cc839df8c12add50f0ef5cedfb1;p=openwrt%2Fsvn-archive%2Fopenwrt.git fix vlans > 9 in the network config (#818) SVN-Revision: 4940 --- diff --git a/openwrt/package/base-files/default/etc/functions.sh b/openwrt/package/base-files/default/etc/functions.sh index 10c1496d83..c66c760122 100755 --- a/openwrt/package/base-files/default/etc/functions.sh +++ b/openwrt/package/base-files/default/etc/functions.sh @@ -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)