board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Dec 2015 17:30:24 +0000 (17:30 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Dec 2015 17:30:24 +0000 (17:30 +0000)
commit9e3e27583817366a80f80177ac84a2dbef55f6dd
tree2646044cba83ea1b38524f6558215cfde5540d5b
parent55d7d4f14bcc54a94d41ea0b274f0893c734ec78
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47721 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/base-files/files/lib/functions/uci-defaults-new.sh
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/bcm53xx/base-files/etc/board.d/02_network
target/linux/mpc85xx/base-files/etc/board.d/02_network
target/linux/mvebu/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/board.d/02_network