diff --git a/setup.sh b/setup.sh index 5c61455..f07d487 100644 --- a/setup.sh +++ b/setup.sh @@ -277,6 +277,29 @@ function setup_env_vars () { echo fi fi + + if [[ "${want_dns_and_ntp}" ]]; then + read -u3 -p 'Specify one or more comma-separated DNS IPs: ' ARCHZBM_OS_DNS_IP + echo + + echo 'Do you want to override Arch Linux'"'"' NTP servers?' + select arg_custom_ntp in 'Yes' 'No'; do + case "${arg_custom_ntp}" in + 'Yes') + want_own_ntp='true' + break + ;; + 'No') + break + ;; + esac + done <&3 && echo + + if [[ "${want_own_ntp}" ]]; then + read -u3 -p 'Specify one or more comma-separated NTP hostnames or IPs: ' ARCHZBM_OS_NTP_IP + echo + fi + fi if [[ "${!env_var}" ]]; then printf -- '%s='"'"'%s'"'"'\n' \ "${env_var}" "${!env_var}" \