X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=blobdiff_plain;f=target%2Flinux%2Fkirkwood%2Fbase-files%2Fetc%2Fboard.d%2F02_network;h=658ce1334672210939092f2c5013d265b95b6a97;hp=f91e8a3252260ec61a71c731bbe316ecf2cf4202;hb=67ce9aedd6d3f7995351f478e79e570c01ea71fc;hpb=f6b5df44d99fa088a47e93f68d2d782046a3c859 diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index f91e8a3252..658ce13346 100755 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -4,31 +4,39 @@ # . /lib/functions/uci-defaults.sh -. /lib/kirkwood.sh +. /lib/functions/system.sh board_config_update -board=$(kirkwood_board_name) +board=$(board_name) case "$board" in -"dockstar"|\ -"goflexhome"|\ -"goflexnet"|\ -"ib62x0"|\ -"iconnect"|\ -"nsa310s"|\ -"pogo_e02"|\ -"sheevaplug"|\ -"sheevaplug-esata") +"checkpoint,l-50") + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8 dmz" "eth0" + ;; +"cisco,on100") + ucidef_set_interface_lan "eth0 eth1" + ;; +"cloudengines,pogoe02"|\ +"cloudengines,pogoplugv4"|\ +"iom,iconnect-1.1"|\ +"iom,ix2-200"|\ +"raidsonic,ib-nas62x0"|\ +"seagate,dockstar"|\ +"seagate,goflexhome"|\ +"seagate,goflexnet"|\ +"zyxel,nsa310s") ucidef_set_interface_lan "eth0" "dhcp" ;; -"linksys-audi"|\ -"linksys-viper") - ucidef_add_switch "switch0" \ - "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1" +"linksys,audi"|\ +"linksys,viper") + ucidef_set_interfaces_lan_wan "ethernet1 ethernet2 ethernet3 ethernet4" "internet" + ucidef_set_interface_macaddr "wan" $( mtd_get_mac_ascii u_env eth1addr ) ;; -"guruplug-server-plus") - ucidef_set_interface_lan "eth0 eth1" "dhcp" +"zyxel,nsa310b"|\ +"zyxel,nsa325") + ucidef_set_interface_lan "eth0" "dhcp" + ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr ) ;; *) ucidef_set_interface_lan "eth0"