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 <jeffery.to@gmail.com>
Maintainer: Ondrej Caletka / @Oskar456
Compile tested: TurrisOS 3.1 (fork of OpenWRT Chaos Calmer), Trunk (both uClibC and musl)
Run tested: mpc85xx - Turris 1.0 - TurrisOS - no problems observed
Upstream: https://github.com/fln/addrwatch / @fln
Description:
This is a tool similar to arpwatch. It's main purpose is to monitor network
and log discovered ethernet/ip pairings.
The package has been UCIfied, care has been taken to reload the deamon
every time an interface goes up or down.
Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>