summaryrefslogtreecommitdiff
blob: 95ee306745c6caa3b1b76801cc74a4a6a090d8a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

description="set time once when started"

depend() {
	use net
}

start() {
	: ${TLSDATE_CMD:=tlsdate}
	ebegin "Setting clock via tlsdate '${TLSDATE_CMD}'"
	"${TLSDATE_CMD}" ${TLSDATE_OPTS}
	eend $? "Failed to set clock"
}