ramips: add support for GL.iNet GL-MT1300
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index e050786..e7f778a 100644 (file)
@@ -10,6 +10,12 @@ PHYNBR=${DEVPATH##*/phy}
 board=$(board_name)
 
 case "$board" in
+       glinet,gl-mt1300)
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress
+               ;;
+       linksys,ea7300-v1|\
+       linksys,ea7300-v2|\
        linksys,ea7500-v2)
                hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr 1 > /sys${DEVPATH}/macaddress