base-files: uci-defaults-new: remove reset/enable args of ucidef_add_switch()
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Dec 2015 17:30:08 +0000 (17:30 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 3 Dec 2015 17:30:08 +0000 (17:30 +0000)
commit55d7d4f14bcc54a94d41ea0b274f0893c734ec78
treeb99fa76a65a2c8ad448f0bf46c6e24f3d2c95fa8
parenta351e962a39e1e8becb1e6e8c06c5b53b2f51f95
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47720 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/ramips/base-files/etc/board.d/02_network