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:
Felix Fietkau 2014-03-21 15:54:18 +00:00
parent e71ec4cb55
commit 84c3487e5a

View File

@ -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
}