openpvn: Split out config parsing code for reuse
authorMichal Hrusecky <michal@hrusecky.net>
Thu, 23 Jul 2020 10:10:45 +0000 (12:10 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 23 Jul 2020 11:10:09 +0000 (13:10 +0200)
commit8483bf3126583041bd6f5808978dc3b14ad15a1a
tree08df0e5d4377ff29051bbe2eae7d3a43ea5445f1
parenteda9751d86927672bb86f895e31a5b8bea76cdfc
openpvn: Split out config parsing code for reuse

Split out code that parses openvpn configuration file into separate file
that can be later included in various scripts and reused.

Signed-off-by: Michal Hrusecky <michal@hrusecky.net>
(cherry picked from commit 86d8467c8ab792c79809a08c223dd9d40da6da2e)
package/network/services/openvpn/Makefile
package/network/services/openvpn/files/etc/hotplug.d/openvpn/01-user
package/network/services/openvpn/files/lib/functions/openvpn.sh [new file with mode: 0644]