From ab968319534a1d434c3a118dc105e78d6ea71c7a Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 6 Jun 2021 19:12:00 +0200 Subject: [PATCH] Use try with ntpd so one can skip time syncing. --- scripts/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index a65fcb3..406fbab 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -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"