Add a version in 'pivpn -v'

This commit is contained in:
Kaladin Light 2016-04-20 19:16:39 -04:00
parent 3d4a005067
commit 0c7905dc3c

5
pivpn
View file

@ -40,6 +40,10 @@ function uninstallFunc {
exit 1
}
function versionFunc {
printf "\e[1mVersion 1.0\e[0m\n"
}
function helpFunc {
echo "::: Control all PiVPN specific functions!"
echo ":::"
@ -67,5 +71,6 @@ case "$1" in
"-r" | "revoke" ) removeOVPNFunc;;
"-h" | "help" ) helpFunc;;
"-u" | "uninstall" ) uninstallFunc;;
"-v" ) versionFunc;;
* ) helpFunc;;
esac