Use try with ntpd so one can skip time syncing.

This commit is contained in:
oddlama 2021-06-06 19:12:00 +02:00
parent 55b12b4fc6
commit ab96831953
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@ source "$GENTOO_INSTALL_REPO_DIR/scripts/protection.sh" || exit 1
function sync_time() {
einfo "Syncing time"
ntpd -g -q \
|| die "Could not sync time with remote server"
try ntpd -g -q
einfo "Current date: $(LANG=C date)"
einfo "Writing time to hardware clock"