Skip to content
Snippets Groups Projects
Commit 31eadd07 authored by John Crispin's avatar John Crispin
Browse files

base-files: Fix switch settings for uci-defaults-new.sh.


The enable and reset settings need to be added even when they're false. This is true at least for 'enable', that seems to default to true otherwise.

Signed-off-by: default avatarVittorio Gambaletta <openwrt@vittgam.net>

SVN-Revision: 43887
parent 52c949e4
No related branches found
No related tags found
No related merge requests found
...@@ -70,8 +70,8 @@ ucidef_add_switch() { ...@@ -70,8 +70,8 @@ ucidef_add_switch() {
json_select_object switch json_select_object switch
json_select_object $name json_select_object $name
[ "$enable" -eq 1 ] && json_add_boolean enable 1 json_add_boolean enable $enable
[ "$reset" -eq 1 ] && json_add_boolean reset 1 json_add_boolean reset $reset
json_select .. json_select ..
json_select .. json_select ..
......
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