2012-05-29 16:39:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2015-12-03 22:27:18 +00:00
|
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
2012-05-29 16:39:15 +00:00
|
|
|
#
|
|
|
|
|
2015-12-03 22:27:18 +00:00
|
|
|
. /lib/functions/uci-defaults-new.sh
|
2014-06-26 10:13:47 +00:00
|
|
|
. /lib/kirkwood.sh
|
2014-06-24 18:18:53 +00:00
|
|
|
|
2015-12-03 22:27:18 +00:00
|
|
|
board_config_update
|
2012-05-29 16:39:15 +00:00
|
|
|
|
2015-12-03 22:27:18 +00:00
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
|
2014-06-24 18:18:53 +00:00
|
|
|
case "$board" in
|
2015-02-12 14:39:26 +00:00
|
|
|
"dockstar"|\
|
2015-05-08 20:12:39 +00:00
|
|
|
"goflexhome"|\
|
2015-02-12 14:39:26 +00:00
|
|
|
"goflexnet"|\
|
|
|
|
"iconnect"|\
|
|
|
|
"ib62x0"|\
|
2015-11-01 01:13:16 +00:00
|
|
|
"nsa310s"|\
|
2014-06-24 18:18:53 +00:00
|
|
|
"pogo_e02")
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
2013-10-31 12:04:04 +00:00
|
|
|
;;
|
2015-11-10 00:16:28 +00:00
|
|
|
"linksys-audi")
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
|
2014-11-10 23:55:10 +00:00
|
|
|
;;
|
2015-11-10 00:16:28 +00:00
|
|
|
"linksys-viper")
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_add_switch "switch0" \
|
|
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
|
2014-05-28 21:43:39 +00:00
|
|
|
;;
|
2014-12-19 11:05:13 +00:00
|
|
|
"guruplug-server-plus")
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_set_interface_lan "eth0 eth1" "dhcp"
|
2014-12-19 11:05:13 +00:00
|
|
|
;;
|
|
|
|
"sheevaplug" | \
|
|
|
|
"sheevaplug-esata")
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
2014-12-19 11:05:13 +00:00
|
|
|
;;
|
2012-05-29 16:39:15 +00:00
|
|
|
*)
|
2015-12-03 22:27:18 +00:00
|
|
|
ucidef_set_interface_lan "eth0" "static"
|
2012-05-29 16:39:15 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-12-03 23:13:04 +00:00
|
|
|
board_config_flush
|
2012-05-29 16:39:15 +00:00
|
|
|
|
|
|
|
exit 0
|