diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-03-21 15:54:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-03-21 15:54:18 +0000 |
commit | 84c3487e5a1168948ee106d5eea20ecbf6e1f495 (patch) | |
tree | ca8d2ca6aa423f53667f9ab5063dc68cc1f6ed3a /package/system | |
parent | e71ec4cb554a18e0ef01d36abeec9f99ceebaef9 (diff) | |
download | mtk-20170518-84c3487e5a1168948ee106d5eea20ecbf6e1f495.zip mtk-20170518-84c3487e5a1168948ee106d5eea20ecbf6e1f495.tar.gz mtk-20170518-84c3487e5a1168948ee106d5eea20ecbf6e1f495.tar.bz2 |
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/system')
-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 9a37343..c5dc3c6 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 } |