ramips: add support for ipTIME AX2004M
[openwrt/staging/chunkeey.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 242e1e6efeec66b0856b26b2f794b1f1746c59c2..6d7af90e80b6810c03abb59191053006530579b8 100644 (file)
@@ -25,6 +25,12 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
                ;;
+       iptime,ax2004m)
+               if [ "$PHYNBR" = "1" ]; then
+                       base_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 3)
+                       macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
+               fi
+               ;;
        jcg,q20)
                [ "$PHYNBR" = "1" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress