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

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