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