addrwatch: Update init script
authorJeffery To <redacted>
Tue, 29 Jan 2019 14:50:36 +0000 (22:50 +0800)
committerJeffery To <redacted>
Tue, 29 Jan 2019 14:50:36 +0000 (22:50 +0800)
commit36e84d8ef67e8dfab6883c90c6fed9b2642648dc
tree9af9157a67184f59af63974655eb40220b5650c0
parenteffc8b5bf856d3f1b18be662f6fcb3da1f23566a
addrwatch: Update init script

This replaces the use of uci_validate_section() with
uci_load_validate(), which removes the need to declare local variables
for every config option.

This also lets procd trigger the validation function directly, and
removes some unnecessary curly brackets.

Signed-off-by: Jeffery To <redacted>
net/addrwatch/Makefile
net/addrwatch/files/addrwatch.init
git clone https://git.99rst.org/PROJECT