hd-idle: Update init script
authorJeffery To <jeffery.to@gmail.com>
Mon, 11 Feb 2019 14:25:14 +0000 (22:25 +0800)
committerJeffery To <jeffery.to@gmail.com>
Mon, 11 Feb 2019 14:25:14 +0000 (22:25 +0800)
commit024644cef3a3cac828251795b43c713fbec34150
treeb450b8cc4304a8bf65e89b73c9e22c19330dbddb
parent1d4081dd4c43ab51d8a6393c0c6c57ba9a79b80c
hd-idle: 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 adds a service_triggers() function.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
utils/hd-idle/Makefile
utils/hd-idle/files/hd-idle.init