Commit 23df4682 authored by Alessandro Rubini's avatar Alessandro Rubini

S70wr_date: bugfix in case no ntp file is there

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f38348c3
......@@ -8,7 +8,7 @@ test -f $F || exit 0
S=$(grep 'ntpserver' $F | sed 's/ntpserver//' | head -n 1)
# if none, exit
text -z "$D" && exit 0
test -z "$S" && exit 0
# pick busybox ntpd explicitly, to avoid real ntpd instances
echo "Setting host time using ntpd"
......
Markdown is supported
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