projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e93c15
)
fix vlans > 9 in the network config (#818)
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 6 Oct 2006 21:10:21 +0000
(21:10 +0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/etc/functions.sh
b/openwrt/package/base-files/default/etc/functions.sh
index 10c1496d837588ff1234fae28ccfcdb618b18dcd..c66c7601224c639334801770df55f0769fe0e3ff 100755
(executable)
--- 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)