mirror of https://github.com/hak5/openwrt.git
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: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 43887lede-17.01
parent
52c949e448
commit
31eadd07f2
|
@ -70,8 +70,8 @@ ucidef_add_switch() {
|
|||
json_select_object switch
|
||||
|
||||
json_select_object $name
|
||||
[ "$enable" -eq 1 ] && json_add_boolean enable 1
|
||||
[ "$reset" -eq 1 ] && json_add_boolean reset 1
|
||||
json_add_boolean enable $enable
|
||||
json_add_boolean reset $reset
|
||||
json_select ..
|
||||
|
||||
json_select ..
|
||||
|
|
Loading…
Reference in New Issue