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

depend() {
	need net
	after firewall
	keyword -vserver -lxc
}

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