mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
owsd: disable by default
This commit is contained in:
parent
40612ae2ef
commit
4e1a1c45a0
2 changed files with 6 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue