From cec727be9da1ea7cd4d9a7ae8cb6a106018a5ee9 Mon Sep 17 00:00:00 2001 From: Promofaux Date: Fri, 8 Apr 2016 23:13:13 +0100 Subject: [PATCH] add pihole update script to 'pihole' command --- pihole | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pihole b/pihole index 5ff26246..b99f1697 100755 --- a/pihole +++ b/pihole @@ -57,6 +57,11 @@ function updateGravityFunc { exit 1 } +function updatePiholeFunc { + $SUDO /opt/pihole/updatePihole.sh + exit 1 +} + function setupLCDFunction { $SUDO /opt/pihole/setupLCD.sh exit 1 @@ -86,6 +91,7 @@ function helpFunc { echo "::: -d, debug Start a debugging session if having trouble" echo "::: -f, flush Flush the pihole.log file" echo "::: -u, updateDashboard Update the web dashboard manually" + echo "::: -up, updatePihole Update the Pi-hole core files manually" echo "::: -g, updateGravity Update the list of ad-serving domains" 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" @@ -105,6 +111,7 @@ case "$1" in "-d" | "debug" ) debugFunc;; "-f" | "flush" ) flushFunc;; "-u" | "updateDashboard" ) updateDashboardFunc;; +"-up" | "updatePihole" ) updatePiholeFunc;; "-g" | "updateGravity" ) updateGravityFunc;; "-s" | "setupLCD" ) setupLCDFunction;; "-c" | "chronometer" ) chronometerFunc "$@";;