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
master
Felix Fietkau 11 years ago
parent e71ec4cb55
commit 84c3487e5a
  1. 1
      package/system/procd/files/procd.sh

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

Loading…
Cancel
Save