lantiq: complete AVM FRITZ!Box 3370 support
[openwrt/openwrt.git] / target / linux / lantiq / base-files / etc / board.d / 02_network
index ca974b0..9da01d1 100755 (executable)
@@ -135,10 +135,13 @@ lantiq,easy80920-nand|lantiq,easy80920-nor)
                "0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0"
        ;;
 
-avm,fritz3370)
+avm,fritz3370-rev2-hynix|\
+avm,fritz3370-rev2-micron)
        annex="b"
-       wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2439)" 1)
-       ucidef_set_interface_lan 'eth0'
+       lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
+       wan_mac=$(macaddr_add "$lan_mac" 3)
+       ucidef_add_switch "switch0" \
+               "0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t@eth0"
        ;;
 
 avm,fritz7320)