socat: Update init script
authorJeffery To <jeffery.to@gmail.com>
Sun, 3 Feb 2019 11:59:43 +0000 (19:59 +0800)
committerJeffery To <jeffery.to@gmail.com>
Sun, 3 Feb 2019 11:59:43 +0000 (19:59 +0800)
commit549bf0ec4448f8e52ba4563be61596ff1606eb4e
treefeeec53e198004bf2b7dd2d3a9993c31be89b8fe
parentfdc5c5be604cbb8b9d03da4e47a137acea46deea
socat: 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 and removes some
unnecessary curly brackets.

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