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)
commitd17a64c7c01e2f0bb79123250ec6ea5f4fb8ec6e
treee35582c364a6ddcd47074324a634d4a3c093131e
parent80f767d09390e69baeeca3f039e2b44bad4c6913
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