From 2baf4d4fb0d2232faa9fd57a665ba4f0bafe9523 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 2 Jul 2014 19:18:16 +0000 Subject: procd: add shell functions to add instance data Signed-off-by: Felix Fietkau SVN-Revision: 41481 --- package/system/procd/files/procd.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'package/system') diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index c5fd512..3465c63 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -264,6 +264,17 @@ _procd_kill() { _procd_ubus_call delete } +procd_open_data() { + local name="$1" + json_set_namespace procd __procd_old_cb + json_add_object data +} + +procd_close_data() { + json_close_object + json_set_namespace $__procd_old_cb +} + uci_validate_section() { local _package="$1" -- cgit v1.1