ramips: add Poray M4 4M/8M support
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / preinit / 06_set_iface_mac
index 86c19b0b819164c05796560fb23766db6a05c7ee..f9aabd5c4e81e853ffa081f5507e4f2d87ea5bde 100644 (file)
@@ -75,7 +75,8 @@ preinit_set_mac_address() {
                mac=$(mtd_get_mac_binary factory 40)
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
-       m3)
+       m3 |\
+       m4)
                mac=$(mtd_get_mac_binary factory 4)
                mac=$(macaddr_add "$mac" -1)
                ifconfig eth0 hw ether $mac 2>/dev/null