Allow external IP as an input script parameter: ./gravity.sh 123.123.123.123

pull/45/head
Jofre Palau 9 years ago
parent 23713d82a0
commit 885069d440

@ -3,7 +3,12 @@
# 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
piholeIP="$1"
if [[ "$piholeIP" == "" ]]; then
piholeIP=$(hostname -I)
fi
# Ad-list sources--one per line in single quotes
sources=('https://adaway.org/hosts.txt'

Loading…
Cancel
Save