mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-30 20:20:17 +00:00
Merge pull request #45 from jofrep/IP-as-input-parameter
Allow external IP as an input script parameter
This commit is contained in:
commit
533f707578
1 changed files with 7 additions and 2 deletions
|
@ -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=$(hostname -I)
|
||||
piholeIP="$1"
|
||||
|
||||
if [ -n "$piholeIP"]; then
|
||||
piholeIP=$(hostname -I|xargs)
|
||||
fi
|
||||
|
||||
|
||||
# Ad-list sources--one per line in single quotes
|
||||
sources=('https://adaway.org/hosts.txt'
|
||||
|
|
Loading…
Add table
Reference in a new issue