base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Dec 2015 17:30:08 +0000 (17:30 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 3 Dec 2015 17:30:08 +0000 (17:30 +0000)
commit6db53db0eac4a745c2d2021000a2b9bb469433e4
treeb99fa76a65a2c8ad448f0bf46c6e24f3d2c95fa8
parentc2f890c60cdf4d17672ebef448e2cd29460debd7
base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()

Out of 69 switch definitions, only 3 pass something different than "1" as
values for reset and enable, with one of those three being invalid.

This change ...

 * removes the reset and enable arguments from ucidef_add_switch()
 * unconditionally writes reset:1 and enable:1 to JSON
 * converts the three users of nonstandard values to ucidef_add_switch_attr()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 47720
package/base-files/files/lib/functions/uci-defaults-new.sh
target/linux/ar71xx/base-files/etc/board.d/02_network
target/linux/ramips/base-files/etc/board.d/02_network