ramips: add support for Cudy X6
[openwrt/staging/chunkeey.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 61285182d226bb2255f12e3514ea5e2e4d60e251..a35e9dcc28dd62019220dc8a32f4fc92cee89207 100644 (file)
@@ -16,6 +16,10 @@ case "$board" in
                [ "$PHYNBR" = "0" ] && echo -n $hw_mac_addr_ra0 > /sys${DEVPATH}/macaddress
                [ "$PHYNBR" = "1" ] && echo -n $hw_mac_addr_rax0 > /sys${DEVPATH}/macaddress
                ;;
+       cudy,x6)
+               hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
+               macaddr_add $hw_mac_addr "$PHYNBR" > /sys${DEVPATH}/macaddress
+               ;;
        dlink,dir-853-a3)
                [ "$PHYNBR" = "0" ] && \
                        macaddr_setbit_la "$(mtd_get_mac_binary factory 0xe000)" \