ramips: add support for D-Link COVR-X1860 A1
[openwrt/openwrt.git] / target / linux / ramips / mt7621 / base-files / etc / hotplug.d / ieee80211 / 10_fix_wifi_mac
index 96b49ff00ae8b2f9b97d3a5ce632d0580e2a7dc7..b6cf9052df1c65388721db2ab5ea8223b78c8468 100644 (file)
@@ -46,6 +46,13 @@ case "$board" in
                [ "$PHYNBR" = "1" ] && \
                        macaddr_add $lan_mac_addr 2 > /sys${DEVPATH}/macaddress
                ;;
+       dlink,covr-x1860-a1)
+               label_mac=$(mtd_get_mac_ascii config2 factory_mac)
+               [ "$PHYNBR" = "0" ] && \
+                       macaddr_add $label_mac 1 > /sys${DEVPATH}/macaddress
+               [ "$PHYNBR" = "1" ] && \
+                       macaddr_add $label_mac 2 > /sys${DEVPATH}/macaddress
+               ;;
        dlink,dap-x1860-a1)
                hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"
                [ "$PHYNBR" = "0" ] && \