# tomsoft-ntp default config
#NTPD_OPTS='-g'

# force setting up corrent time on first start ONLY (and delay init(8) until time is set)
if [ "$1" = "start" ]
then
	echo -n "First start, forcing waiting until time set or timeout(60)... "
	if timeout -k 90 60 ntpd -gq
	then
		echo
	else
		logger --stderr "FAILED to set time on boot, only starting ntpd normally!"
		#exit 105
	fi
fi
