aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commit84c3487e5a1168948ee106d5eea20ecbf6e1f495 (patch)
treeca8d2ca6aa423f53667f9ab5063dc68cc1f6ed3a /package
parente71ec4cb554a18e0ef01d36abeec9f99ceebaef9 (diff)
downloadupstream-84c3487e5a1168948ee106d5eea20ecbf6e1f495.tar.gz
upstream-84c3487e5a1168948ee106d5eea20ecbf6e1f495.tar.bz2
upstream-84c3487e5a1168948ee106d5eea20ecbf6e1f495.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> SVN-Revision: 39983
Diffstat (limited to 'package')
-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
}