openwrt/package/base-files/files
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>
2019-01-22 09:05:59 +01:00
..
bin base-files: make it possible to specify switch led mode 2018-09-29 17:23:11 +02:00
etc procd: Add wrapper for uci_validate_section() 2019-01-22 09:05:59 +01:00
lib base-files: allow non-standard rootfs volume name in UBI in sysupgrade 2019-01-01 16:38:20 +01:00
rom rename default/ to files/ 2006-11-22 23:30:57 +00:00
sbin base-files: add sysupgrade -k to save list of pkgs 2018-12-09 18:04:11 +00:00
usr base-files: fix several bashisms 2018-12-05 22:16:52 +01:00