forked from freifunk-franken/firmware
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:
parent
6129130103
commit
c46dff2e81
|
@ -28,5 +28,5 @@ elif [ "$ETHMODE" = "CLIENT" ] ; then
|
|||
else
|
||||
## Activate BATMAN:
|
||||
uci set network.ethmesh.ifname="$SWITCHDEV"
|
||||
ETH0MAC=1
|
||||
ETH0MAC="w2ap"
|
||||
fi
|
||||
|
|
|
@ -28,5 +28,5 @@ elif [ "$ETHMODE" = "CLIENT" ] ; then
|
|||
else
|
||||
## Activate BATMAN:
|
||||
uci set network.ethmesh.ifname="$SWITCHDEV"
|
||||
ETH0MAC=1
|
||||
ETH0MAC="w2ap"
|
||||
fi
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user