mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-17 04:17:19 +00:00
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
This commit is contained in:
parent
e71ec4cb55
commit
84c3487e5a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user