1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-11-20 07:08:13 +00:00

Added gravity.sh to the list of options

This commit is contained in:
nate 2016-03-28 18:37:49 -05:00
parent 76ea1962be
commit fee55fa642
4 changed files with 16 additions and 11 deletions

View File

@ -13,7 +13,7 @@
if [[ $# = 0 ]]; then if [[ $# = 0 ]]; then
echo "::: Immediately blacklists one or more domains in the hosts file" echo "::: Immediately blacklists one or more domains in the hosts file"
echo ":::" echo ":::"
echo "::: Usage: pihole.sh -b domain1 [domain2 ...]" echo "::: Usage: sudo pihole.sh -b domain1 [domain2 ...]"
echo ":::" echo ":::"
echo "::: Options:" echo "::: Options:"
echo "::: -d, --delmode Remove domains from the blacklist" echo "::: -d, --delmode Remove domains from the blacklist"

View File

@ -120,7 +120,7 @@ function normalChrono(){
function displayHelp(){ function displayHelp(){
echo "::: Displays stats about your piHole!" echo "::: Displays stats about your piHole!"
echo ":::" echo ":::"
echo "::: Usage: pihole.sh -c [optional:-j]" echo "::: Usage: sudo pihole.sh -c [optional:-j]"
echo "::: Note: If no option is passed, then stats are displayed on screen, updated every 5 seconds" echo "::: Note: If no option is passed, then stats are displayed on screen, updated every 5 seconds"
echo ":::" echo ":::"
echo "::: Options:" echo "::: Options:"

View File

@ -13,7 +13,7 @@
if [[ $# = 0 ]]; then if [[ $# = 0 ]]; then
echo "::: Immediately whitelists one or more domains in the hosts file" echo "::: Immediately whitelists one or more domains in the hosts file"
echo ":::" echo ":::"
echo "::: Usage: pihole -w domain1 [domain2 ...]" echo "::: Usage: sudo pihole.sh -w domain1 [domain2 ...]"
echo ":::" echo ":::"
echo "::: Options:" echo "::: Options:"
echo "::: -d, --delmode Remove domains from the whitelist" echo "::: -d, --delmode Remove domains from the whitelist"

View File

@ -61,6 +61,10 @@ function chronometerFunc {
$SUDO /opt/pihole/chronometer.sh $SUDO /opt/pihole/chronometer.sh
exit 1 exit 1
} }
function gravityFunc {
$SUDO /opt/pihole/gravity.sh
exit 1
}
function helpFunc { function helpFunc {
echo "::: Control all PiHole specific functions!" echo "::: Control all PiHole specific functions!"
@ -69,14 +73,15 @@ function helpFunc {
printf ":::\tAdd -h after -w, -b, or -c for more information on usage\n" printf ":::\tAdd -h after -w, -b, or -c for more information on usage\n"
echo ":::" echo ":::"
echo "::: Options:" echo "::: Options:"
printf "::: -w, --whitelist\t\tWhitelist domains\n" echo "::: -w, --whitelist Whitelist domains"
printf "::: -b, --blacklist\t\tBlacklist domains\n" echo "::: -b, --blacklist Blacklist domains"
printf "::: -d, --debug\t\tStart a debugging session if having trouble\n" echo "::: -d, --debug Start a debugging session if having trouble"
printf "::: -f, --flush\t\tFlush the pihole.log file\n" echo "::: -f, --flush Flush the pihole.log file"
printf "::: -u, --updateDashboard\t\tUpdate the web dashboard manually\n" echo "::: -u, --updateDashboard Update the web dashboard manually"
printf "::: -s, --setupLCD\t\tAutomatically configures the Pi to use the 2.8 LCD screen to display stats on it\n" echo "::: -g, --updateGravity Update the list of ad-serving domains"
printf "::: -c, --chronometer\t\tCalculates stats and displays to an LCD\n" echo "::: -s, --setupLCD Automatically configures the Pi to use the 2.8 LCD screen to display stats on it"
printf "::: -h, --help\t\tShow this help dialog\n" echo "::: -c, --chronometer Calculates stats and displays to an LCD"
echo "::: -h, --help Show this help dialog"
exit 1 exit 1
} }