procd: add a PROCD_DEBUG variable that will dump the ubus calls from init scripts...
authorFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 15:54:18 +0000 (15:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 21 Mar 2014 15:54:18 +0000 (15:54 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39983

package/system/procd/files/procd.sh

index 9a37343484bcd31ebe1132612881521b00382ba0..c5dc3c65cb00ec8592fed7f59a15769b189e1490 100644 (file)
@@ -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
 }