Update pivpn

Changed function name and added description to helpFunc
This commit is contained in:
TimmThaler 2017-11-06 08:40:46 +01:00 committed by GitHub
parent 1f20cb4583
commit 8e3fa6af78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

7
pivpn
View file

@ -69,8 +69,8 @@ function versionFunc {
printf "\e[1mVersion 1.9\e[0m\n" printf "\e[1mVersion 1.9\e[0m\n"
} }
function convertIOSFunc { function convertconnectFunc {
$SUDO /opt/pivpn/convertiOS.sh $SUDO /opt/pivpn/convert.openvpnconnect.sh
} }
function helpFunc { function helpFunc {
@ -84,6 +84,7 @@ function helpFunc {
echo "::: -d, debug Start a debugging session if having trouble" echo "::: -d, debug Start a debugging session if having trouble"
echo "::: -l, list List all valid and revoked certificates" echo "::: -l, list List all valid and revoked certificates"
echo "::: -r, revoke Revoke a client ovpn profile" echo "::: -r, revoke Revoke a client ovpn profile"
echo "::: -o, ovpncon Convert your ovpn file to use with the OpenVPN Connect app"
echo "::: -h, help Show this help dialog" echo "::: -h, help Show this help dialog"
echo "::: -u, uninstall Uninstall PiVPN from your system!" echo "::: -u, uninstall Uninstall PiVPN from your system!"
exit 1 exit 1
@ -100,7 +101,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;; "-o" | "ovpncon" ) convertconnectFunc;;
"-h" | "help" ) helpFunc;; "-h" | "help" ) helpFunc;;
"-u" | "uninstall" ) uninstallFunc;; "-u" | "uninstall" ) uninstallFunc;;
"-v" ) versionFunc;; "-v" ) versionFunc;;