mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-03-31 12:40:16 +00:00
setDNS
whiptail direct, not in array.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
80a3bce6d5
commit
c58a95ca2e
1 changed files with 71 additions and 69 deletions
|
@ -429,14 +429,16 @@ valid_ip() {
|
||||||
}
|
}
|
||||||
|
|
||||||
setDNS() {
|
setDNS() {
|
||||||
DNSChooseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6)
|
local DNSSettingsCorrect
|
||||||
|
|
||||||
DNSChooseOptions=(Google "" on
|
DNSChooseOptions=(Google "" on
|
||||||
OpenDNS "" off
|
OpenDNS "" off
|
||||||
Level3 "" off
|
Level3 "" off
|
||||||
Norton "" off
|
Norton "" off
|
||||||
Comodo "" off
|
Comodo "" off
|
||||||
Custom "" off)
|
Custom "" off)
|
||||||
DNSchoices=$("${DNSChooseCmd[@]}" "${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
DNSchoices=$(whiptail --separate-output --radiolist "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6 \
|
||||||
|
"${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
||||||
{ echo "::: Cancel selected. Exiting"; exit 1; }
|
{ echo "::: Cancel selected. Exiting"; exit 1; }
|
||||||
case ${DNSchoices} in
|
case ${DNSchoices} in
|
||||||
Google)
|
Google)
|
||||||
|
|
Loading…
Add table
Reference in a new issue