fix ubus representation for EX400 topology in cloud refs: #15754

This commit is contained in:
Robin Stjerndorff 2018-10-17 15:56:15 +02:00 committed by Sukru Senli
parent 688f9aa686
commit 4d0dd5634b

View file

@ -91,8 +91,13 @@ correct_uplink() {
wetcfg="$(get_wifi_iface_cfgstr $WETIF)"
wetnet="$(uci -q get $wetcfg.network)"
wetmac="$(ifconfig $WETIF | grep HWaddr | awk '{print$NF}')"
ethwanmac="$(ifconfig $WANDEV | grep HWaddr | awk '{print$NF}')"
if [ -d /sys/class/net/br-$wetnet ]; then
ifconfig br-$wetnet hw ether $wetmac
if [ "$link" == "up" ]; then
ifconfig br-$wetnet hw ether $ethwanmac
else
ifconfig br-$wetnet hw ether $wetmac
fi
#touch -f /tmp/netmodes/uplink-macaddr-corrected
fi
fi