1
0
mirror of https://gitlab.com/JKANetwork/JKArch.git synced 2026-02-17 10:41:32 +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 hwclock --systohc --utc
execl chroot systemctl enable ntpd execl chroot systemctl enable ntpd
if [[ $isoffline = 0 ]];then #Only sync if its online if [[ $isoffline = 0 ]];then #Only sync if its online
echo "$(T "Syncing hour to internet")"; echo "$(T "Syncing hour to internet in background")";
execl chroot ntpd -qg execl chroot (ntpd -qg && && hwclock -w) &> /dev/null
execl chroot hwclock -w
else else
echo "Clock will not be okay until restart and configure manually because you dont have net" echo "Clock will not be okay until restart and configure manually because you dont have net"
fi fi