aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-02 19:18:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-07-02 19:18:16 +0000
commit2baf4d4fb0d2232faa9fd57a665ba4f0bafe9523 (patch)
treeb4557d36a5f118b97518f11ab6942b331ff63b19 /package/system/procd/files
parent2b274eb7191c121616a93219ef0cf4daf81404dd (diff)
downloadupstream-2baf4d4fb0d2232faa9fd57a665ba4f0bafe9523.tar.gz
upstream-2baf4d4fb0d2232faa9fd57a665ba4f0bafe9523.tar.bz2
upstream-2baf4d4fb0d2232faa9fd57a665ba4f0bafe9523.zip
procd: add shell functions to add instance data
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41481
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/procd.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index c5fd512486..3465c639aa 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"