From 84c3487e5a1168948ee106d5eea20ecbf6e1f495 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Mar 2014 15:54:18 +0000 Subject: [PATCH] procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts to stderr Signed-off-by: Felix Fietkau SVN-Revision: 39983 --- package/system/procd/files/procd.sh | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.30.2