summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2013-09-13 16:59:22 +0200
committerJonathan Bauer2013-09-30 13:26:30 +0200
commitb466b2af1390947a6885b48e34734119bc6acec8 (patch)
tree64a2aea8aab5e0d18f124e678e39b8bae321a083
parent[debug] Optionally include tcpdump and getfacl (diff)
downloadtm-scripts-b466b2af1390947a6885b48e34734119bc6acec8.tar.gz
tm-scripts-b466b2af1390947a6885b48e34734119bc6acec8.tar.xz
tm-scripts-b466b2af1390947a6885b48e34734119bc6acec8.zip
[ntpdate.service] Speed up timesync a little
-rwxr-xr-xremote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_network_time6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_network_time b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_network_time
index 3e644abd..87c93fd4 100755
--- a/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_network_time
+++ b/remote/rootfs/rootfs-stage32/data/opt/openslx/scripts/systemd-setup_network_time
@@ -3,13 +3,13 @@
. /opt/openslx/config || { echo "Could not source config!"; exit 1; }
SLX_NTP_SERVER="$SLX_NTP_SERVER 0.de.pool.ntp.org"
for SERVER in $SLX_NTP_SERVER; do
- if ntpdate -u -b "$SERVER"; then
+ if ntpdate -u -p 2 "$SERVER"; then
echo "Successfully queried $SERVER for time."
if [ "x$SLX_BIOS_CLOCK" = "xlocal" ]; then
- sleep 1
+ usleep 100000
hwclock -l -w || echo "... but could not set BIOS clock to localtime"
elif [ "x$SLX_BIOS_CLOCK" = "xutc" ]; then
- sleep 1
+ usleep 100000
hwclock -u -w || echo "... but could not set BIOS clock to UTC"
fi
exit 0