diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-02 19:18:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-02 19:18:16 +0000 |
commit | 42647b77cc3abe1c3fa10017a5e11e60de7277a0 (patch) | |
tree | 72a65873e0773f3385ff5306664960b6abb644ab /package/system/procd | |
parent | 3a49df3b9c228a4266acc4749420f4c1dcad0355 (diff) | |
download | upstream-42647b77cc3abe1c3fa10017a5e11e60de7277a0.tar.gz upstream-42647b77cc3abe1c3fa10017a5e11e60de7277a0.tar.bz2 upstream-42647b77cc3abe1c3fa10017a5e11e60de7277a0.zip |
procd: add shell functions to add instance data
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41481 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system/procd')
-rw-r--r-- | package/system/procd/files/procd.sh | 11 |
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" |