openwrt/package/base-files/files/etc/init.d
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
..
boot base-files, mac80211, broadcom-wl: wifi detection and configuration 2016-11-03 11:08:01 +01:00
done fstools: update to the latest version, makes interrupted first boot more reliable 2015-03-22 15:11:27 +00:00
gpio_switch base-files: gpio switch: check if direction can be set 2018-01-18 07:22:37 +01:00
led base-files: Fix netdev led trigger 2018-12-16 20:11:44 +01:00
sysctl base-files: fix wrong sysctl parameter order 2018-07-18 19:17:46 +02:00
sysfixtime base-files: sysfixtime: Keep RTC time in UTC timezone 2016-10-31 16:33:19 +01:00
system procd: Add wrapper for uci_validate_section() 2019-01-22 09:05:59 +01:00
umount base-files: fix mount-utils incompatibility 2013-12-27 21:15:09 +00:00
urandom_seed base-files: use procd init for urandom_seed 2016-07-27 01:24:54 +02:00