Skip to content
Snippets Groups Projects
Commit 0eae2af6 authored by Adam Wujek's avatar Adam Wujek
Browse files

[BUG: #355] rootfs/etc/init.d/wr_date: fix checking return value of ntpd


Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent 5511be67
Branches
Tags
No related merge requests found
......@@ -8,6 +8,8 @@
# The set of time from the /update/saved_date file can happen only at the call
# of this script from rcS during the bootup.
set -o pipefail
dotConfig="/wr/etc/dot-config"
if [ -f $dotConfig ]; then
# source dot-config
......@@ -57,7 +59,7 @@ ntp_retries()
eval echo "NTP success" $LOGPIPE
return 0
else
eval echo "Retry $i/$N : NTP query failed, unable to contact server ($S)." $LOGPIPE
eval echo "Retry $i/$N : NTP query failed, unable to contact server \($S\)." $LOGPIPE
fi
done
eval echo "ERROR: could not reach NTP server '$S' after $N retries" $LOGPIPE
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment