wg-installer: rework code
authorNick Hainke <vincent@systemli.org>
Wed, 19 Jan 2022 17:40:16 +0000 (18:40 +0100)
committerNick Hainke <vincent@systemli.org>
Thu, 20 Jan 2022 01:04:50 +0000 (02:04 +0100)
commit69c81790d1045e064cd9c643a1643a0f919f448d
treee5fe7b9e6f04d55b87031bb41a6451468b59681c
parent8ca0439f97197d8bebe4337846e9209b2f0f1a0d
wg-installer: rework code

Use shellcheck to rework the code. Use "export" to return variables from
a function call. Further, fix typos.

Signed-off-by: Nick Hainke <vincent@systemli.org>
net/wg-installer/common/wg.sh
net/wg-installer/wg-client/config/wgclient.conf
net/wg-installer/wg-client/lib/rpcd_ubus.sh
net/wg-installer/wg-client/wg-client-installer.sh
net/wg-installer/wg-server/config/wgserver.conf
net/wg-installer/wg-server/hotplug.d/99-mesh-babeld
net/wg-installer/wg-server/hotplug.d/99-mesh-olsrd
net/wg-installer/wg-server/lib/install_wginstaller_user.sh
net/wg-installer/wg-server/lib/wg_functions.sh
net/wg-installer/wg-server/wginstaller.sh