aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/rdate.initd
blob: 3d31de855db579b3eee70dc984f9ddbadc43e4f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/runscript

depend() {
	need net
	after firewall
}

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 $?
}