1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-16 12:23:59 +02:00

coova-chilli: enable service by default

If "disabled" option does not exist, service should be enabled.

Fixes: #10392

Signed-off-by: Sungbo Eo <mans0n@gorani.run>
This commit is contained in:
Sungbo Eo 2020-01-02 22:21:28 +09:00
parent 2ce311209d
commit 23a44aab2a

View File

@ -49,7 +49,7 @@ start_chilli() {
local cfg="$1" local cfg="$1"
local base="/var/run/chilli_${cfg}" local base="/var/run/chilli_${cfg}"
config_get_bool disabled "$1" 'disabled' 1 config_get_bool disabled "$1" 'disabled' 0
[ $disabled = 1 ] && return [ $disabled = 1 ] && return
procd_open_instance "$cfg" procd_open_instance "$cfg"