summaryrefslogtreecommitdiffstats
path: root/core/busybox-initscripts/rdate.initd
blob: 3e6c6582c9b2b065aa89a456886b0c590a34dd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/sbin/runscript

start() {
	if [ -z "$NTP_HOST" ] ; then
		eerror "Please set NTP_HOST in /etc/conf.d/rdate"
		return 1
	fi
	ebegin "Running busybox rdate"
	rdate "$NTP_HOST"
	eend $?
}