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
Showing
- package/base-files/files/lib/functions/uci-defaults-new.sh 12 additions, 14 deletionspackage/base-files/files/lib/functions/uci-defaults-new.sh
- target/linux/ar71xx/base-files/etc/board.d/02_network 2 additions, 1 deletiontarget/linux/ar71xx/base-files/etc/board.d/02_network
- target/linux/ramips/base-files/etc/board.d/02_network 4 additions, 2 deletionstarget/linux/ramips/base-files/etc/board.d/02_network
Loading
Please register or sign in to comment