Use try with ntpd so one can skip time syncing.
This commit is contained in:
parent
55b12b4fc6
commit
ab96831953
|
@ -7,8 +7,7 @@ source "$GENTOO_INSTALL_REPO_DIR/scripts/protection.sh" || exit 1
|
||||||
|
|
||||||
function sync_time() {
|
function sync_time() {
|
||||||
einfo "Syncing time"
|
einfo "Syncing time"
|
||||||
ntpd -g -q \
|
try ntpd -g -q
|
||||||
|| die "Could not sync time with remote server"
|
|
||||||
|
|
||||||
einfo "Current date: $(LANG=C date)"
|
einfo "Current date: $(LANG=C date)"
|
||||||
einfo "Writing time to hardware clock"
|
einfo "Writing time to hardware clock"
|
||||||
|
|
Loading…
Reference in New Issue