mirror of
https://github.com/bhaiest/holoiso.git
synced 2024-11-15 15:52:33 +01:00
Merge pull request #131 from pants4hire/3.0
Adding NTP time syncing before install.
This commit is contained in:
commit
df4ce93935
@ -16,6 +16,16 @@ else
|
||||
exit
|
||||
fi
|
||||
|
||||
# Update system time
|
||||
if [ $(timedatectl status | grep -c "NTP service: active") -ne 1 ]; then
|
||||
# If NTP is not active, enable it.
|
||||
timedatectl set-ntp true
|
||||
|
||||
# Update the hardware clock.
|
||||
hwclock --systohc
|
||||
fi
|
||||
|
||||
|
||||
if [[ "${CPU_VENDOR}" == "AuthenticAMD" ]]; then
|
||||
UCODE_INSTALL_MSG="AMD CPU detected, installing AMD ucode..."
|
||||
UCODE_INSTALL="amd-ucode"
|
||||
|
Loading…
Reference in New Issue
Block a user