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

(-)./rdate (-4 / +2 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}
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"
32
	return 1
35
}
33
}

Return to bug 168830