board.d: merge ucidef_add_switch() and ucidef_add_switch_ports()
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Dec 2015 17:30:24 +0000 (17:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Dec 2015 17:30:24 +0000 (17:30 +0000)
commit2bed435f6774c6160f1e8e8bd46a748ca4efc3fb
tree2646044cba83ea1b38524f6558215cfde5540d5b
parent605c909287c19a334fb7fe2dd363392dd8d59e13
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