procd: add shell functions to add instance data
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41481
This commit is contained in:
parent
2b274eb719
commit
2baf4d4fb0
1 changed files with 11 additions and 0 deletions
|
@ -264,6 +264,17 @@ _procd_kill() {
|
||||||
_procd_ubus_call delete
|
_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()
|
uci_validate_section()
|
||||||
{
|
{
|
||||||
local _package="$1"
|
local _package="$1"
|
||||||
|
|
Loading…
Reference in a new issue