owsd: disable by default

This commit is contained in:
Sukru Senli 2021-05-12 13:11:50 +02:00
parent 40612ae2ef
commit 4e1a1c45a0
2 changed files with 6 additions and 0 deletions

View file

@ -1,4 +1,5 @@
config owsd 'global'
option enable '0'
# option sock '/var/run/ubus.sock'
option www '/www'
# option redirect '/cgi-bin/luci:/cacheflush.html'

View file

@ -124,6 +124,7 @@ validate_owsd_ubusproxy() {
validate_owsd_global() {
uci_validate_section "owsd" "owsd" "global" \
'enable:bool:1' \
'sock:string' \
'redirect:string' \
'www:string' \
@ -320,6 +321,10 @@ start_service() {
load_dhcp_domains
config_load owsd # note: do not overload a config while parsing it
config_get_bool owsd_enable global enable 1
[ $owsd_enable -eq 1 ] || return 0
procd_open_instance
procd_set_param command $PROG