mediatek: set persistent wifi mac for bpi-r64 and bpi-r3
[openwrt/openwrt.git] / target / linux / mediatek / mt7622 / base-files / etc / hotplug.d / ieee80211 / 11_fix_wifi_mac
index d573465745e190a89277d773cb2edb0165ff8c8e..00ed12cd2f0097ea1ef1d4a241b0a5456d58f835 100644 (file)
@@ -10,6 +10,9 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+       bananapi,bpi-r64)
+               [ "$PHYNBR" = "0" ] && macaddr_add $(cat /sys/class/net/eth0/address) 2 > /sys${DEVPATH}/macaddress
+               ;;
        ruijie,rg-ew3200gx-pro)
                [ "$PHYNBR" = "0" ] && macaddr_add $(get_mac_label) 3 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $(get_mac_label) 2 > /sys${DEVPATH}/macaddress