Skip to content
Snippets Groups Projects
Commit d17a64c7 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

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: default avatarJo-Philipp Wich <jow@openwrt.org>

SVN-Revision: 47720
parent 80f767d0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment