mirror of
https://gitlab.com/JKANetwork/JKArch.git
synced 2026-02-15 17:51:33 +01:00
Fix ntpd hang doing it in background
This commit is contained in:
@@ -670,9 +670,8 @@ function installconf {
|
||||
execl chroot hwclock --systohc --utc
|
||||
execl chroot systemctl enable ntpd
|
||||
if [[ $isoffline = 0 ]];then #Only sync if its online
|
||||
echo "$(T "Syncing hour to internet")";
|
||||
execl chroot ntpd -qg
|
||||
execl chroot hwclock -w
|
||||
echo "$(T "Syncing hour to internet in background")";
|
||||
execl chroot (ntpd -qg && && hwclock -w) &> /dev/null
|
||||
else
|
||||
echo "Clock will not be okay until restart and configure manually because you dont have net"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user