sshtunnel: Update init script
authorJeffery To <jeffery.to@gmail.com>
Mon, 4 Feb 2019 07:50:26 +0000 (15:50 +0800)
committerNuno Goncalves <nunojpg@gmail.com>
Mon, 4 Feb 2019 08:17:14 +0000 (09:17 +0100)
commitf5181d615c2f6361bf107314a786f7a0410526a2
tree30a959920b87404ffde7fc7639dcf7a95cf60fad
parent4f41588c299a358f969660425908c946e92b15ee
sshtunnel: 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 fixes some validation, makes variable declarations local,
removes unnecessary curly brackets.

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