added the convertIOS function for ovpn conversion

This commit is contained in:
TimmThaler 2017-11-04 16:57:42 +01:00 committed by GitHub
parent 6f06b42490
commit 4f3aae0636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

5
pivpn
View file

@ -69,6 +69,10 @@ function versionFunc {
printf "\e[1mVersion 1.9\e[0m\n" printf "\e[1mVersion 1.9\e[0m\n"
} }
function convertIOSFunc {
$SUDO /opt/pivpn/convertiOS.sh
}
function helpFunc { function helpFunc {
echo "::: Control all PiVPN specific functions!" echo "::: Control all PiVPN specific functions!"
echo ":::" echo ":::"
@ -96,6 +100,7 @@ case "$1" in
"-d" | "debug" ) debugFunc;; "-d" | "debug" ) debugFunc;;
"-l" | "list" ) listOVPNFunc;; "-l" | "list" ) listOVPNFunc;;
"-r" | "revoke" ) removeOVPNFunc "$@";; "-r" | "revoke" ) removeOVPNFunc "$@";;
"-i" | "ios" ) convertIOSFunc;;
"-h" | "help" ) helpFunc;; "-h" | "help" ) helpFunc;;
"-u" | "uninstall" ) uninstallFunc;; "-u" | "uninstall" ) uninstallFunc;;
"-v" ) versionFunc;; "-v" ) versionFunc;;