coova-chilli: enable service by default 10927/head
authorSungbo Eo <mans0n@gorani.run>
Thu, 2 Jan 2020 13:21:28 +0000 (22:21 +0900)
committerSungbo Eo <mans0n@gorani.run>
Fri, 3 Jan 2020 11:50:00 +0000 (20:50 +0900)
If "disabled" option does not exist, service should be enabled.

Fixes: #10392
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
net/coova-chilli/files/chilli.init

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