procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 39983
This commit is contained in:
parent
e71ec4cb55
commit
84c3487e5a
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ _procd_wrapper() {
|
|||
_procd_ubus_call() {
|
||||
local cmd="$1"
|
||||
|
||||
[ -n "$PROCD_DEBUG" ] && json_dump >&2
|
||||
ubus call service "$cmd" "$(json_dump)"
|
||||
json_cleanup
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue