From 35a882f626cc3cc839df8c12add50f0ef5cedfb1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 6 Oct 2006 21:10:21 +0000 Subject: [PATCH] fix vlans > 9 in the network config (#818) SVN-Revision: 4940 --- openwrt/package/base-files/default/etc/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2