On Thu, Apr 10, 2008 at 06:03:39PM +0200, Lubos Lunak wrote: > How about the attached patch? > the clock will always be a few seconds later than requested - due to the password entering latency. one'd have to start the helper in advance and make it talk with the "master" via a pipe to avoid that. fwiw, the code contains a hwclock call - afaict, this is just bogus. for example, it does not account for the clock being in gmt/local mode. this should be definitely left up to the system's shutdown scripts.