summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/ntpdate
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc.d/ntpdate')
-rwxr-xr-xetc/rc.d/ntpdate4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate
index 4a8b845..235e6c0 100755
--- a/etc/rc.d/ntpdate
+++ b/etc/rc.d/ntpdate
@@ -16,13 +16,13 @@ start_cmd="ntpdate_start"
ntpdate_start()
{
- if [ -z "$ntpdate_hosts" -a -f ${ntpdate_config} ]; then
+ if [ -z "$ntpdate_hosts" -a -f "$ntpdate_config" ]; then
ntpdate_hosts=`awk '
/^server[ \t]*127.127/ {next}
/^(server|peer)/ {
if ($2 ~/^-/) {print $3}
else {print $2}}
- ' < ${ntpdate_config}`
+ ' < "$ntpdate_config"`
fi
if [ -n "$ntpdate_hosts" -o -n "$rc_flags" ]; then
echo "Setting date via ntp."
OpenPOWER on IntegriCloud