ramips: add support for ipTIME AX2004M
[openwrt/staging/mans0n.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 711af4e3afb0362b6dbaa27cb2c9944950e5b50c..c5e6b6c89b47370d2dc1b96d7c181c65332b60f6 100644 (file)
@@ -25,11 +25,18 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
                ;;
+       iptime,ax2004m)
+               if [ "$PHYNBR" = "1" ]; then
+                       hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
+                       macaddr_setbit_la "$(macaddr_add $hw_mac_addr 3)" > /sys${DEVPATH}/macaddress
+               fi
+               ;;
        jcg,q20)
                [ "$PHYNBR" = "1" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress
                ;;
        linksys,e5600|\
+       linksys,ea6350-v4|\
        linksys,ea7300-v1|\
        linksys,ea7300-v2|\
        linksys,ea7500-v2|\
@@ -39,4 +46,13 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr 2 > /sys${DEVPATH}/macaddress
                ;;
+       raisecom,msg1500-x-00)
+               [ "$PHYNBR" = "0" ] && \
+                       macaddr_setbit_la "$(mtd_get_mac_ascii Config protest_lan_mac)" \
+                               > /sys${DEVPATH}/macaddress
+               ;;
+       tenbay,t-mb5eu-v01)
+               hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
+               [ "$PHYNBR" = "1" ] &&  macaddr_add $hw_mac_addr "0x100000" > /sys${DEVPATH}/macaddress
+               ;;
 esac