obuspa: remove usages of stdout/stderr from init

This commit is contained in:
Vivek Kumar Dutta 2025-04-14 14:21:42 +05:30
parent f2f6f6b787
commit b99d4413dc
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
3 changed files with 2 additions and 11 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=9.0.4.13
PKG_VERSION:=9.0.4.14
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)

View file

@ -1,6 +1,5 @@
config obuspa 'global'
option enabled '1'
option debug '1'
option dhcp_discovery '1'
option log_level '2'
option prototrace '0'

View file

@ -156,7 +156,6 @@ validate_obuspa_section()
'client_cert:file' \
'interface:string' \
'ifname:string' \
'debug:bool:0' \
'prototrace:bool:0' \
'log_level:uinteger' \
'min_num_to_group:uinteger' \
@ -632,18 +631,11 @@ configure_mqtt_client() {
configure_obuspa() {
local enabled trust_cert ifname interface debug prototrace log_level db_file log_dest
local enabled trust_cert ifname interface prototrace log_level db_file log_dest
local client_cert
validate_obuspa_section "global"
if [ "${debug}" -ne "0" ]; then
# Forward stdout of the command to logd
procd_set_param stdout 1
# Same for stderr
procd_set_param stderr 1
fi
if [ "${prototrace}" -eq 1 ]; then
procd_append_param command -p
fi