Skip to content
Snippets Groups Projects
Commit 84c3487e authored by Felix Fietkau's avatar Felix Fietkau
Browse files

procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr


Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>

SVN-Revision: 39983
parent e71ec4cb
No related branches found
No related tags found
No related merge requests found
...@@ -50,6 +50,7 @@ _procd_wrapper() { ...@@ -50,6 +50,7 @@ _procd_wrapper() {
_procd_ubus_call() { _procd_ubus_call() {
local cmd="$1" local cmd="$1"
[ -n "$PROCD_DEBUG" ] && json_dump >&2
ubus call service "$cmd" "$(json_dump)" ubus call service "$cmd" "$(json_dump)"
json_cleanup json_cleanup
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment