mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-18 12:00:55 +00:00
Merge pull request #1156 from pi-hole/tweak/whiptail_dns
DNS whiptail from radio to menu
This commit is contained in:
commit
6863bff7c5
@ -432,13 +432,13 @@ valid_ip() {
|
|||||||
setDNS() {
|
setDNS() {
|
||||||
local DNSSettingsCorrect
|
local DNSSettingsCorrect
|
||||||
|
|
||||||
DNSChooseOptions=(Google "" on
|
DNSChooseOptions=(Google ""
|
||||||
OpenDNS "" off
|
OpenDNS ""
|
||||||
Level3 "" off
|
Level3 ""
|
||||||
Norton "" off
|
Norton ""
|
||||||
Comodo "" off
|
Comodo ""
|
||||||
Custom "" off)
|
Custom "")
|
||||||
DNSchoices=$(whiptail --separate-output --radiolist "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6 \
|
DNSchoices=$(whiptail --separate-output --menu "Select Upstream DNS Provider. To use your own, select Custom." ${r} ${c} 6 \
|
||||||
"${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
"${DNSChooseOptions[@]}" 2>&1 >/dev/tty) || \
|
||||||
{ echo "::: Cancel selected. Exiting"; exit 1; }
|
{ echo "::: Cancel selected. Exiting"; exit 1; }
|
||||||
case ${DNSchoices} in
|
case ${DNSchoices} in
|
||||||
|
Loading…
Reference in New Issue
Block a user