makes ETH0MAC the same semantics as other *MAC config variables

Signed-off-by: Tobias Klaus <tk+ff@meskal.net>
Reviewed-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
This commit is contained in:
Tobias Klaus 2016-01-23 16:59:00 +01:00
parent 6129130103
commit c46dff2e81
3 changed files with 3 additions and 3 deletions

View File

@ -28,5 +28,5 @@ elif [ "$ETHMODE" = "CLIENT" ] ; then
else
## Activate BATMAN:
uci set network.ethmesh.ifname="$SWITCHDEV"
ETH0MAC=1
ETH0MAC="w2ap"
fi

View File

@ -28,5 +28,5 @@ elif [ "$ETHMODE" = "CLIENT" ] ; then
else
## Activate BATMAN:
uci set network.ethmesh.ifname="$SWITCHDEV"
ETH0MAC=1
ETH0MAC="w2ap"
fi

View File

@ -105,7 +105,7 @@ fi
if [[ -n "$ETH0MAC" ]]; then
echo "Fixing MAC on eth0"
sleep 10
NEW_MACADDR=$(cat /sys/class/net/w2ap/address)
NEW_MACADDR=$(cat "/sys/class/net/${ETH0MAC}/address")
uci set network.eth0.macaddr=$NEW_MACADDR
uci commit
ifconfig eth0 down