ramips: add support for RAISECOM MSG1500 X.00
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 8b7c7ab7f0329532bdf3c85bfe36850644758892..6ef44138cc47409570cae5006175f196fa1b2fd0 100644 (file)
@@ -39,6 +39,11 @@ 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" = "0" ] && macaddr_add $hw_mac_addr "1" > /sys${DEVPATH}/macaddress