mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-26 17:20:15 +00:00
Merge branch 'development' into promoTweaksTheSecond
# Conflicts: # advanced/Scripts/blacklist.sh # advanced/Scripts/whitelist.sh
This commit is contained in:
commit
9ab6df0e54
10 changed files with 117 additions and 116 deletions
21
gravity.sh
21
gravity.sh
|
@ -13,15 +13,16 @@
|
|||
# Run this script as root or under sudo
|
||||
echo ":::"
|
||||
|
||||
helpFunc()
|
||||
{
|
||||
echo "::: Pull in domains from adlists"
|
||||
echo ":::"
|
||||
echo "::: Usage: pihole -g"
|
||||
echo ":::"
|
||||
echo "::: Options:"
|
||||
echo "::: -f, --force Force lists to be downloaded, even if they don't need updating."
|
||||
echo "::: -h, --help Show this help dialog"
|
||||
helpFunc() {
|
||||
cat << EOM
|
||||
::: Pull in domains from adlists
|
||||
:::
|
||||
::: Usage: pihole -g
|
||||
:::
|
||||
::: Options:
|
||||
::: -f, --force Force lists to be downloaded, even if they don't need updating.
|
||||
::: -h, --help Show this help dialog
|
||||
EOM
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -188,7 +189,7 @@ gravity_Schwarzchild() {
|
|||
echo " done!"
|
||||
}
|
||||
|
||||
gravity_Blacklist(){
|
||||
gravity_Blacklist() {
|
||||
# Append blacklist entries if they exist
|
||||
numBlacklisted=$(wc -l < "${blacklistFile}")
|
||||
plural=; [[ "$numBlacklisted" != "1" ]] && plural=s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue