projects
/
openwrt
/
staging
/
ynezz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b274eb
)
procd: add shell functions to add instance data
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Jul 2014 19:18:16 +0000
(19:18 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 2 Jul 2014 19:18:16 +0000
(19:18 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41481
package/system/procd/files/procd.sh
patch
|
blob
|
history
diff --git
a/package/system/procd/files/procd.sh
b/package/system/procd/files/procd.sh
index c5fd512486990c9018d8530395d3f31e4aa24b1d..3465c639aa9b6142dc787f8272b9159c24b21589 100644
(file)
--- 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"