mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 10:43:55 +00:00
heredoc for helpfunc in pihole
This commit is contained in:
parent
12e041c9ef
commit
5ebfa5ecf7
1 changed files with 21 additions and 19 deletions
40
pihole
40
pihole
|
@ -97,25 +97,27 @@ versionFunc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
helpFunc() {
|
helpFunc() {
|
||||||
echo "::: Control all PiHole specific functions!"
|
cat << EOM
|
||||||
echo ":::"
|
::: Control all PiHole specific functions!
|
||||||
echo "::: Usage: pihole [options]"
|
:::
|
||||||
echo "::: Add -h after -w (whitelist), -b (blacklist), or -c (chronometer) for more information on usage"
|
::: Usage: pihole [options]
|
||||||
echo ":::"
|
::: Add -h after -w (whitelist), -b (blacklist), or -c (chronometer) for more information on usage
|
||||||
echo "::: Options:"
|
:::
|
||||||
echo "::: -w, whitelist Whitelist domains"
|
::: Options:
|
||||||
echo "::: -b, blacklist Blacklist domains"
|
::: -w, whitelist Whitelist domains
|
||||||
echo "::: -d, debug Start a debugging session if having trouble"
|
::: -b, blacklist Blacklist domains
|
||||||
echo "::: -f, flush Flush the pihole.log file"
|
::: -d, debug Start a debugging session if having trouble
|
||||||
echo "::: -up, updatePihole Update Pi-hole"
|
::: -f, flush Flush the pihole.log file
|
||||||
echo "::: -g, updateGravity Update the list of ad-serving domains"
|
::: -up, updatePihole Update Pi-hole
|
||||||
echo "::: -s, setupLCD Automatically configures the Pi to use the 2.8 LCD screen to display stats on it"
|
::: -g, updateGravity Update the list of ad-serving domains
|
||||||
echo "::: -c, chronometer Calculates stats and displays to an LCD"
|
::: -s, setupLCD Automatically configures the Pi to use the 2.8 LCD screen to display stats on it
|
||||||
echo "::: -h, help Show this help dialog"
|
::: -c, chronometer Calculates stats and displays to an LCD
|
||||||
echo "::: -v, version Show current versions"
|
::: -h, help Show this help dialog
|
||||||
echo "::: -q, query Query the adlists for a specific domain"
|
::: -v, version Show current versions
|
||||||
echo "::: uninstall Uninstall Pi-Hole from your system :(!"
|
::: -q, query Query the adlists for a specific domain
|
||||||
exit 0
|
::: uninstall Uninstall Pi-Hole from your system :(!
|
||||||
|
EOM
|
||||||
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ $# = 0 ]]; then
|
if [[ $# = 0 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue