ath79: add support for ZyXEL NBG6616
[openwrt/staging/wigyori.git] / target / linux / ath79 / generic / base-files / lib / preinit / 10_fix_eth_mac.sh
index c5d9cd536fe1d1c23ab28ba2c88e5174385792cd..ad7372eb037af5cb80d9837632c8c6241250b71f 100644 (file)
@@ -17,6 +17,11 @@ preinit_set_mac_address() {
        siemens,ws-ap3610)
                ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
                ;;
+       zyxel,nbg6616)
+               ethaddr=$(mtd_get_mac_ascii u-boot-env ethaddr)
+               ip link set dev eth0 address $(macaddr_add $ethaddr 2)
+               ip link set dev eth1 address $(macaddr_add $ethaddr 3)
+               ;;
        esac
 }