You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jeffery To d13e86d4c2 procd: Add wrapper for uci_validate_section()
This adds a wrapper (uci_load_validate) for uci_validate_section() that
allows callers (through a callback function) to access the values set by
uci_validate_section(), without having to manually declare a
(potentially long) list of local variables.

The callback function receives two arguments when called, the config
section name and the return value of uci_validate_section().

If no callback function is given, then the wrapper exits with the value
returned by uci_validate_section().

This also updates several init scripts to use the new wrapper function.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
6 years ago
..
hotplug-preinit.json procd: fix hotplug-preinit.json syntax 7 years ago
hotplug.json procd: fix hotplug.json syntax 7 years ago
procd.sh procd: Add wrapper for uci_validate_section() 6 years ago
reload_config procd: check output of "uci show" instead of raw config files in order to track uncommitted changes 10 years ago