aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-03-21 15:54:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-03-21 15:54:18 +0000
commit1abc9c63a29718c4686c2b7d49961e852adad879 (patch)
treea7f749c62ca488c4c3ee6a5f71fe664641374378
parent0406a375930e2b0314a0be49bd8de6bf69b3de99 (diff)
downloadmaster-187ad058-1abc9c63a29718c4686c2b7d49961e852adad879.tar.gz
master-187ad058-1abc9c63a29718c4686c2b7d49961e852adad879.tar.bz2
master-187ad058-1abc9c63a29718c4686c2b7d49961e852adad879.zip
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.sh1
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
}