projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kirkwood: add support for Check Point L-50
[openwrt/openwrt.git]
/
target
/
linux
/
kirkwood
/
base-files
/
etc
/
board.d
/
02_network
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 355418b229a5164e81c7f6701bea0a603fbfee17..658ce1334672210939092f2c5013d265b95b6a97 100755
(executable)
--- a/
target/linux/kirkwood/base-files/etc/board.d/02_network
+++ b/
target/linux/kirkwood/base-files/etc/board.d/02_network
@@
-3,40
+3,43
@@
# Copyright (C) 2012-2015 OpenWrt.org
#
# Copyright (C) 2012-2015 OpenWrt.org
#
-. /lib/functions/uci-defaults
-new
.sh
-. /lib/
kirkwood
.sh
+. /lib/functions/uci-defaults.sh
+. /lib/
functions/system
.sh
board_config_update
board_config_update
-board=$(
kirkwood_
board_name)
+board=$(board_name)
case "$board" in
case "$board" in
-"dockstar"|\
-"goflexhome"|\
-"goflexnet"|\
-"iconnect"|\
-"ib62x0"|\
-"nsa310s"|\
-"pogo_e02")
- ucidef_set_interface_lan "eth0" "dhcp"
+"checkpoint,l-50")
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8 dmz" "eth0"
;;
;;
-"linksys-audi")
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
+"cisco,on100")
+ ucidef_set_interface_lan "eth0 eth1"
;;
;;
-"linksys-viper")
- ucidef_add_switch "switch0" \
- "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@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"
;;
;;
-"guruplug-server-plus")
- ucidef_set_interface_lan "eth0 eth1" "dhcp"
+"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 )
;;
;;
-"
sheevaplug" |
\
-"
sheevaplug-esata
")
+"
zyxel,nsa310b"|
\
+"
zyxel,nsa325
")
ucidef_set_interface_lan "eth0" "dhcp"
ucidef_set_interface_lan "eth0" "dhcp"
+ ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
;;
*)
;;
*)
- ucidef_set_interface_lan "eth0"
"static"
+ ucidef_set_interface_lan "eth0"
;;
esac
;;
esac