kirkwood: add support for Cisco ON100
[openwrt/openwrt.git] / target / linux / kirkwood / base-files / etc / board.d / 02_network
index b5406b0e37069787d483429329a1f855e0baae19..19f0292b294feb93736579228e51a2c2ad7ce525 100755 (executable)
@@ -4,6 +4,7 @@
 #
 
 . /lib/functions/uci-defaults.sh
+. /lib/functions/system.sh
 . /lib/kirkwood.sh
 
 board_config_update
@@ -30,10 +31,13 @@ case "$board" in
        ucidef_add_switch "switch0" \
                "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
        ;;
-"nsa310b")
+"nsa310b"|"nsa325")
        ucidef_set_interface_lan "eth0" "dhcp"
        ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
        ;;
+"on100")
+       ucidef_set_interface_lan "eth0 eth1"
+       ;;
 *)
        ucidef_set_interface_lan "eth0"
        ;;