Skip to content

Commit

Permalink
v9.3
Browse files Browse the repository at this point in the history
- Minor
  • Loading branch information
MichaIng committed Apr 9, 2024
1 parent 0283693 commit c754c16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dietpi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

#------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion dietpi/func/dietpi-set_software
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c754c16

Please sign in to comment.