red: change mac address of nas0 device.

Traverse Technology has reported that ppp over atm-bridge is not working
because there is a bogus mac address at the virtual nas0 device.
This commit is contained in:
Arne Fitzenreiter
2014-03-01 16:01:11 +01:00
parent c6f96750ba
commit d0ff84a675

View File

@@ -175,6 +175,14 @@ case "${1}" in
boot_mesg "Createing ATM-Bridge as $PPP_NIC ..."
br2684ctl -c0 -e${ENCAP} -a0.${VPI}.${VCI} >/dev/null 2>&1 &
sleep 1
# use user-defined or green mac address for nas0
if [ -n "$MAC" ]; then
ip link set dev nas0 address ${MAC}
else
ip link set dev nas0 address $(cat /sys/class/net/green0/address)
fi
if [ "$TYPE" == "pppoeatm" ]; then
TYPE="pppoe"
fi