We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit f8223752 authored by RISCi_ATOM's avatar RISCi_ATOM

Add uci_load_validate() to procd (for tmp. compatibility) upstream :...

Add uci_load_validate() to procd (for tmp. compatibility) upstream : d13e86d4c2d4c1c8970a20cc1f3214b266f57ed0
parent 13bfff32
......@@ -452,6 +452,23 @@ uci_validate_section()
return $_error
}
uci_load_validate() {
local _package="$1"
local _type="$2"
local _name="$3"
local _function="$4"
local _option
local _result
shift; shift; shift; shift
for _option in "$@"; do
eval "local ${_option%%:*}"
done
uci_validate_section "$_package" "$_type" "$_name" "$@"
_result=$?
[ -n "$_function" ] || return $_result
eval "$_function \"\$_name\" \"\$_result\""
}
_procd_wrapper \
procd_open_service \
procd_close_service \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment