Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Config | Minor NTP enhancements #1403

Merged
merged 1 commit into from
Jan 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dietpi/dietpi-config
Original file line number Diff line number Diff line change
Expand Up @@ -5056,12 +5056,13 @@ Custom : Write = $CUSTOM_WRITE | Read = $CUSTOM_READ\
whiptail_menu_array+=('debian.pool.ntp.org' 'Debian Global')
whiptail_menu_array+=('pool.ntp.org' 'Global')
whiptail_menu_array+=('europe.pool.ntp.org' 'Europe')
whiptail_menu_array+=('north-america.pool.ntp.org' 'US North')
whiptail_menu_array+=('south-america.pool.ntp.org' 'US South')
whiptail_menu_array+=('oceania.pool.ntp.org' 'Oceania')
whiptail_menu_array+=('north-america.pool.ntp.org' 'North America')
whiptail_menu_array+=('south-america.pool.ntp.org' 'South America')
whiptail_menu_array+=('africa.pool.ntp.org' 'Africa')
whiptail_menu_array+=('asia.pool.ntp.org' 'Asia')
whiptail_menu_array+=('oceania.pool.ntp.org' 'Oceania')

OPTION=$(whiptail --title "Choose NTPD Mirror" --menu "Please select a NTPD mirror, or choose custom for manual entry." --default-item "$ntpd_mirror_current" --cancel-button "$TEXT_MENU_BACK" --backtitle "$WHIP_BACKTITLE" 15 100 7 "${whiptail_menu_array[@]}" 3>&1 1>&2 2>&3)
OPTION=$(whiptail --title "Choose NTPD Mirror" --menu "Please select a NTPD mirror, or choose custom for manual entry.\n - Further information: \"http://www.pool.ntp.org/zone/@\"" --default-item "$ntpd_mirror_current" --cancel-button "$TEXT_MENU_BACK" --backtitle "$WHIP_BACKTITLE" 16 100 7 "${whiptail_menu_array[@]}" 3>&1 1>&2 2>&3)
CHOICE=$?
if (( $CHOICE == 0 )); then

Expand Down