diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-03-21 15:54:18 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2014-03-21 15:54:18 +0000 |
commit | 7421f1e13abb639b8d6daa3e53cdf2d36cbdb98f (patch) | |
tree | a7f749c62ca488c4c3ee6a5f71fe664641374378 | |
parent | 65eab62f76d2ff14592fd25a23f13b529962e2a9 (diff) |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39983 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/system/procd/files/procd.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 9a37343484..c5dc3c65cb 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -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 } |