ntpd: Update init script
authorJeffery To <jeffery.to@gmail.com>
Sun, 3 Feb 2019 08:34:36 +0000 (16:34 +0800)
committertripolar <tripolar@users.noreply.github.com>
Tue, 26 Feb 2019 19:46:30 +0000 (20:46 +0100)
commita214ce9f5b520a3cb479250b351f2eaead4ed0bc
tree9f3edb79225e39ef5c7b5c9f42c81569d4cef71a
parent9754ee1dcc8d99a21fc10924c21dd763b95bcf35
ntpd: 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 moves the generated config file to /var/etc and adds a
service_triggers() function.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
net/ntpd/Makefile
net/ntpd/files/ntpd.init