#!/bin/bash
#
#VERSION=5
#CHANGES="removed dhcp-ntp-host, as dhcp sets now ntphost"

PATH=/bin:/sbin:/usr/bin:/usr/sbin::/usr/local/bin:/usr/local/sbin:/usr/fallback

ntphost=$(/usr/fallback/beroconf get root ntphost | grep -v failed)
if [ -z "${ntphost}" ]; then
	exit 0
fi

/usr/local/bin/rdate -ns ${ntphost} &> /dev/null

