diff --git a/dietpi.txt b/dietpi.txt index d0db5bb566..fdd5e82a8e 100644 --- a/dietpi.txt +++ b/dietpi.txt @@ -226,9 +226,9 @@ CONFIG_APT_DEBIAN_MIRROR=https://deb.debian.org/debian/ # NTP server(s) applied to /etc/systemd/timesyncd.conf # - "default": Use the NTP server(s) provided via DHCP, else the debian.pool.ntp.org NTP pool. # - "gateway": Use the router/gateway as NTP server. Recommended, if it does provide this functionality. -# - To use a public NTP pool, see the full list at: https://www.ntppool.org/zone/@ +# - To use another public NTP pool, see the full list at: https://www.ntppool.org/zone/@ # Use the pool domain without leading integer and dot (without "0."), like "debian.pool.ntp.org", "pool.ntp.org" or "uk.pool.ntp.org". -# - You can also use a custom IP address, hostname or any combination of space-separated IP addresses, hostnames and NTP pool domain. +# - You can also use a custom IP address, hostname or any combination of space-separated IP addresses, hostnames and NTP pool domains. CONFIG_NTP_MIRROR=default #------------------------------------------------------------------------------------------------------ diff --git a/dietpi/func/dietpi-set_software b/dietpi/func/dietpi-set_software index f5178be1c1..93e7b1fb27 100755 --- a/dietpi/func/dietpi-set_software +++ b/dietpi/func/dietpi-set_software @@ -245,7 +245,7 @@ deb $INPUT_MODE_VALUE $G_DISTRO_NAME-backports main contrib non-free' > /etc/apt #///////////////////////////////////////////////////////////////////////////////////// TimeSync_Main() { - if [[ ! $INPUT_MODE_VALUE || $INPUT_MODE_VALUE == [01234] ]] + if [[ ! $INPUT_MODE_VALUE || $INPUT_MODE_VALUE == [0-4] ]] then # If no input given, re-apply current dietpi.txt setting, else revert to default mode 2 [[ $INPUT_MODE_VALUE ]] || INPUT_MODE_VALUE=$(sed -n '/^[[:blank:]]*CONFIG_NTP_MODE=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)