ipq40xx: add support for EZVIZ CS-W3-WD1200G EUP
[openwrt/openwrt.git] / target / linux / ipq40xx / base-files / lib / preinit / 05_set_iface_mac_ipq40xx.sh
index 192488f3778fe97d2e6c48fc3738e6f7aa6def22..1bca152a382e23a5e9ef6ecb1ebe7504bb73e491 100644 (file)
@@ -9,6 +9,10 @@ preinit_set_mac_address() {
                ip link set dev eth0 address $(macaddr_add "$base_mac" +1)
                ip link set dev eth1 address $(macaddr_add "$base_mac" +3)
                ;;
+       ezviz,cs-w3-wd1200g-eup)
+               ip link set dev eth0 address $(mtd_get_mac_binary "ART" 0x6)
+               ip link set dev eth1 address $(mtd_get_mac_binary "ART" 0x0)
+               ;;
        linksys,ea8300)
                base_mac=$(mtd_get_mac_ascii devinfo hw_mac_addr)
                ip link set dev eth0 address "${base_mac}"