Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 173218
Collapse All | Expand All

(-)rdate (-4 / +1 lines)
Lines 27-35 Link Here
27
	checkconfig || return $?
27
	checkconfig || return $?
28
28
29
	ebegin "Setting clock via rdate"
29
	ebegin "Setting clock via rdate"
30
	/usr/bin/rdate -s ${RDATE_OPTS} ${RDATE_SERVER} >/dev/null &
30
	/usr/bin/rdate -s ${RDATE_OPTS} -t ${RDATE_TIMEOUT} ${RDATE_SERVER} > /dev/null
31
	local pid=$!
32
	(sleep ${RDATE_TIMEOUT:-30}; kill -9 ${pid} >&/dev/null) &
33
	wait ${pid}
34
	eend $? "Failed to set clock"
31
	eend $? "Failed to set clock"
35
}
32
}

Return to bug 173218