aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-12-03 17:30:24 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-12-03 17:30:24 +0000
commit9b02e73188158829d48835906edbb8702fd95e28 (patch)
treef7592cc1db8ad3aac0040b011b106c73048acb97 /target/linux/mpc85xx
parentd17a64c7c01e2f0bb79123250ec6ea5f4fb8ec6e (diff)
downloadupstream-9b02e73188158829d48835906edbb8702fd95e28.tar.gz
upstream-9b02e73188158829d48835906edbb8702fd95e28.tar.bz2
upstream-9b02e73188158829d48835906edbb8702fd95e28.zip
board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()
This changes uci-defaults-new.sh, config_generate and all relevant board.d files in order combine ucidef_add_switch() and ucidef_add_switch_ports() into a single function. Also removes now superfluous enable and reset arguments. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 47721
Diffstat (limited to 'target/linux/mpc85xx')
-rwxr-xr-xtarget/linux/mpc85xx/base-files/etc/board.d/02_network3
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/mpc85xx/base-files/etc/board.d/02_network b/target/linux/mpc85xx/base-files/etc/board.d/02_network
index af2c1e05b2..5aab17c0a2 100755
--- a/target/linux/mpc85xx/base-files/etc/board.d/02_network
+++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network
@@ -15,8 +15,7 @@ board=$(mpc85xx_board_name)
case "$board" in
tl-wdr4900-v1)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
- ucidef_add_switch "switch0" "1" "1"
- ucidef_add_switch_ports "switch0" \
+ ucidef_add_switch "switch0" \
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
;;
*)