Archived
1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
archive/target/linux/kirkwood/base-files/etc/board.d/02_network
Jo-Philipp Wich 61e50a0e44 all: drop old uci-defaults.sh
Replace former uci-defaults.sh implementation with the uci-defaults-new.sh one
and update all users accordingly.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47867
2015-12-11 15:26:06 +00:00

46 lines
767 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2012-2015 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
. /lib/kirkwood.sh
board_config_update
board=$(kirkwood_board_name)
case "$board" in
"dockstar"|\
"goflexhome"|\
"goflexnet"|\
"iconnect"|\
"ib62x0"|\
"nsa310s"|\
"pogo_e02")
ucidef_set_interface_lan "eth0" "dhcp"
;;
"linksys-audi")
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
;;
"linksys-viper")
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
;;
"guruplug-server-plus")
ucidef_set_interface_lan "eth0 eth1" "dhcp"
;;
"sheevaplug" | \
"sheevaplug-esata")
ucidef_set_interface_lan "eth0" "dhcp"
;;
*)
ucidef_set_interface_lan "eth0" "static"
;;
esac
board_config_flush
exit 0