ramips: add support for Beeline SmartBox Flash
[openwrt/staging/chunkeey.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 02_network
index bd51f3638e9e6bdb8f3f0a6dcd0cc9cf2e5d8a6d..1fc0ccdd5b54588abe0a2c450b8f962401b419a7 100644 (file)
@@ -38,6 +38,7 @@ ramips_setup_interfaces()
                ucidef_set_interfaces_lan_wan "lan" "wan"
                ;;
        asiarf,ap7621-nv1|\
+       beeline,smartbox-flash|\
        glinet,gl-mt1300|\
        iptime,a3002mesh|\
        jcg,q20|\
@@ -115,6 +116,11 @@ ramips_setup_macs()
                wan_mac=$(mtd_get_mac_ascii u-boot-env et1macaddr)
                label_mac=$(mtd_get_mac_binary factory 0x4)
                ;;
+       beeline,smartbox-flash)
+               lan_mac=$(mtd_get_mac_ascii u-boot-env eth2macaddr)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env eth3macaddr)
+               label_mac=$lan_mac
+               ;;
        buffalo,wsr-1166dhp)
                local index="$(find_mtd_index "board_data")"
                wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"