summaryrefslogtreecommitdiffstats
path: root/target/linux/mpc83xx/base-files/etc/uci-defaults/network
blob: a3467aaeddcf767e8e428e82ae1d9c833fe8e0ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# Copyright (C) 2012 OpenWrt.org
#

[ -e /etc/config/network ] && exit 0

touch /etc/config/network

. /lib/functions/uci-defaults.sh
. /lib/mpc83xx.sh

ucidef_set_interface_loopback

board=$(mpc83xx_board_name)

case "$board" in
rb333)
	ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
	;;

*)
	ucidef_set_interfaces_lan_wan "eth0" "eth1"
	;;
esac

uci commit network

exit 0