Allow external IP as an input script parameter: ./gravity.sh 123.123.123.123
This commit is contained in:
@@ -3,7 +3,12 @@
|
|||||||
# Compiles a list of ad-serving domains by downloading them from multiple sources
|
# Compiles a list of ad-serving domains by downloading them from multiple sources
|
||||||
|
|
||||||
# This script should only be run after you have a static IP address set on the Pi
|
# This script should only be run after you have a static IP address set on the Pi
|
||||||
|
piholeIP="$1"
|
||||||
|
|
||||||
|
if [[ "$piholeIP" == "" ]]; then
|
||||||
piholeIP=$(hostname -I)
|
piholeIP=$(hostname -I)
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Ad-list sources--one per line in single quotes
|
# Ad-list sources--one per line in single quotes
|
||||||
sources=('https://adaway.org/hosts.txt'
|
sources=('https://adaway.org/hosts.txt'
|
||||||
|
|||||||
Reference in New Issue
Block a user