tgt: Update init script 8126/head
authorJeffery To <jeffery.to@gmail.com>
Mon, 4 Feb 2019 12:02:28 +0000 (20:02 +0800)
committerJeffery To <jeffery.to@gmail.com>
Fri, 8 Feb 2019 08:43:06 +0000 (16:43 +0800)
commit66c553470edd00e96e6f635cde0d689f808585ed
treea868d48027513a733a66625b2bbdede255503f0c
parentf5181d615c2f6361bf107314a786f7a0410526a2
tgt: 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, removes a duplicate
option, and removes some unnecessary curly brackets.

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