add -r to reconfigure pihole (basically runs basic-install.sh from /etc/.pihole)

This commit is contained in:
Promofaux 2016-10-15 17:07:08 +01:00
parent 23f7363c70
commit 5ea08a2120
1 changed files with 7 additions and 1 deletions

6
pihole
View File

@ -116,6 +116,11 @@ function updatePiholeFunc {
exit 1
}
function reconfigurePiholeFunc {
${SUDO} /etc/.pihole/automated\ install/basic-install.sh
exit 1;
}
function updateGravityFunc {
${SUDO} /opt/pihole/gravity.sh "$@"
exit 1
@ -190,6 +195,7 @@ case "$1" in
"-d" | "debug" ) debugFunc;;
"-f" | "flush" ) flushFunc;;
"-up" | "updatePihole" ) updatePiholeFunc;;
"-r" | "reconfigure" ) reconfigurePiholeFunc;;
"-g" | "updateGravity" ) updateGravityFunc "$@";;
"-s" | "setupLCD" ) setupLCDFunction;;
"-c" | "chronometer" ) chronometerFunc "$@";;