3 alias debug
=${DEBUG:-:}
5 # allow env to override nvram
7 eval "echo \${$1:-\$(nvram get $1)}"
13 [ "${1%%[0-9]}" = "vlan" ] && {
15 hwname
=$
(nvram_get vlan
${i}hwname
)
16 hwaddr
=$
(nvram_get
${hwname}macaddr
)
17 [ -z "$hwaddr" ] && return 1
19 vif
=$
(ifconfig
-a |
awk '/^eth.*'$hwaddr'/ {print $1; exit}' IGNORECASE
=1)
20 debug
"# vlan$i: $hwname $hwaddr => $vif"
22 $DEBUG ifconfig
$vif up
23 $DEBUG vconfig add
$vif $i 2>/dev
/null
25 ifconfig
"$1" >/dev
/null
2>&1 ||
[ "${1%%[0-9]}" = "br" ]
This page took 0.046818 seconds and 5 git commands to generate.