openwrt/package/base-files/files/etc
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
..
board.d
hotplug.d/net base-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf 2018-04-13 10:16:45 +02:00
init.d procd: Add wrapper for uci_validate_section() 2019-01-22 09:05:59 +01:00
iproute2 base-files: install missing /etc/iproute2/ematch_map 2018-12-19 07:33:35 +01:00
rc.button base-files: fix off-by-one in counting seconds for factory reset 2018-03-01 08:04:51 +01:00
sysctl.d sysctl: Protect hard/symlinks by default. 2018-05-01 11:19:03 +02:00
uci-defaults base-files: remove /etc/uci-defaults/11_migrate-sysctl 2018-04-13 10:16:45 +02:00
banner merge: release/banner: drop release name and update banner 2017-12-08 19:41:18 +01:00
banner.failsafe base-files: fix links in banner.failsafe 2018-06-18 07:10:15 +02:00
device_info
diag.sh base-files: diag.sh: Make it more generic towards DTS so it could be reused 2018-12-06 08:42:40 +01:00
ethers base-files: create /etc/ethers by default 2018-08-21 15:55:00 +02:00
fstab
group base-files: add "tty" user group 2017-06-26 10:02:20 +02:00
hosts
inittab
openwrt_release merge: properly remove %n / %N references 2017-12-09 16:01:14 +01:00
openwrt_version build: adjust version number handling 2016-12-02 16:02:02 +01:00
os-release
passwd
preinit preinit: use only the image config options 2016-08-10 03:04:08 +02:00
profile base-files: provide more tolerant xterm detection 2018-08-29 08:33:54 +02:00
protocols
rc.common base-files: fix unkillable processes after restart 2018-11-22 13:15:10 +01:00
rc.local
services base-files: /etc/services: add missing 'rpcbind' alias 2018-09-10 10:44:03 +02:00
shadow
shells
sysctl.conf base-files: move sysctl defaults to /etc/sysctl.d/10-default.conf 2018-04-13 10:16:45 +02:00
sysupgrade.conf