mirror of
https://github.com/moparisthebest/pi-hole
synced 2024-11-13 12:55:05 -05:00
Merge pull request #1 from mospaeda/mospaeda-patch-1
Automatic IP detection with all locale
This commit is contained in:
commit
6edd8a828d
@ -4,6 +4,11 @@
|
|||||||
piholeIP="127.0.0.1"
|
piholeIP="127.0.0.1"
|
||||||
# Optionally, uncomment to automatically detect the address. Thanks Gregg
|
# Optionally, uncomment to automatically detect the address. Thanks Gregg
|
||||||
#piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}')
|
#piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}')
|
||||||
|
# Below code allows to automatically detect the address with all locale
|
||||||
|
langsys=$LANG
|
||||||
|
LANG=en_US.utf8
|
||||||
|
piholeIP=$(ifconfig eth0 | awk '/inet addr/{print substr($2,6)}')
|
||||||
|
LANG=$langsys
|
||||||
|
|
||||||
# Config file to hold URL rules
|
# Config file to hold URL rules
|
||||||
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
eventHorizion="/etc/dnsmasq.d/adList.conf"
|
||||||
|
Loading…
Reference in New Issue
Block a user