ramips: add support for Dovado tiny AC
[openwrt.git] / target / linux / ramips / base-files / etc / hotplug.d / firmware / 10-rt2x00-eeprom
index 1ba6728..0e02177 100644 (file)
@@ -57,6 +57,11 @@ case "$FIRMWARE" in
        br-6475nd | rt-n56u | whr-600d | whr-1166d)
                rt2x00_eeprom_extract "factory" 32768 512
                ;;
+       tiny-ac)
+               local wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR)
+               rt2x00_eeprom_extract "factory" 0 512
+               rt2x00_eeprom_set_macaddr $wifi_mac
+               ;;
        esac
        ;;
 esac