From 6a17a3eeec3dfb5de0920e96ca8f419cb844389d Mon Sep 17 00:00:00 2001 From: Promofaux Date: Tue, 2 Aug 2016 19:44:11 +0100 Subject: [PATCH] Add command to pihole script --- pihole | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pihole b/pihole index bbcb82d0..73c7fa64 100755 --- a/pihole +++ b/pihole @@ -74,6 +74,10 @@ function uninstallFunc { exit 1 } +function versionFunc{ + $SUDO /opt/pihole/version.sh + exit 1 +} function helpFunc { echo "::: Control all PiHole specific functions!" echo ":::" @@ -90,6 +94,7 @@ function helpFunc { echo "::: -s, setupLCD Automatically configures the Pi to use the 2.8 LCD screen to display stats on it" echo "::: -c, chronometer Calculates stats and displays to an LCD" echo "::: -h, help Show this help dialog" + echo "::: -v, version Show current versions" echo "::: uninstall Uninstall Pi-Hole from your system!" exit 1 } @@ -109,6 +114,7 @@ case "$1" in "-s" | "setupLCD" ) setupLCDFunction;; "-c" | "chronometer" ) chronometerFunc "$@";; "-h" | "help" ) helpFunc;; +"-v" | "version" ) versionFunc;; "uninstall" ) uninstallFunc;; * ) helpFunc;; esac