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 b7a41f0..e7f778a 100644 (file)
@@ -10,6 +10,10 @@ 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)