1
0
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:
2017-01-18 20:21:13 +01:00
parent ae0613f3a1
commit 3fb4b83377

View File

@@ -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