whiptail --msgbox --backtitle "Insufficient Disk Space" --title "Insufficient Disk Space""\nYour system appears to be low on disk space. pi-hole recomends a minimum of $requiredFreeBytes Bytes.\nYou only have $existingFreeBytes Free.\n\nIf this is a new install you may need to expand your disk.\n\nTry running:\n 'sudo raspi-config'\nChoose the 'expand file system option'\n\nAfter rebooting, run this installation again.\n\ncurl -L install.pi-hole.net | bash\n"$r$c
exit1
fi
}
chooseInterface(){
# Turn the available interfaces into an array so it can be used with a whiptail dialog
interfacesArray=()
@ -286,9 +300,12 @@ setStaticIPv4() {
}
setDNS(){
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider"$r$c3)
DNSChoseCmd=(whiptail --separate-output --radiolist "Select Upstream DNS Provider"$r$c6)