mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Add command to pihole script
This commit is contained in:
parent
c04b3559d0
commit
6a17a3eeec
1 changed files with 6 additions and 0 deletions
6
pihole
6
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
|
||||
|
|
Loading…
Reference in a new issue