[Q] how to deal with 'clock vs hwclock' call
I had a bug reported against apmd because apmd.c somewhat hackishly calls
clock(8) as per
case APM_CRITICAL_RESUME:
time( &then );
system( "clock -s" );
time( &now );
check_power( 1, 0 );
break;
I have the feeling that I should replace that by a call to a shell script
which also checks for UTC. A really simple version ( which uses the rcS
script maintained by sysvinit ) would be
#! /bin/sh
[ -f /etc/default/rcS ] && . /etc/default/rcS
hwclock $GMT "$@"
But shouldn't something like this be provided by util-linux ?
--
mailto:edd@debian.org According to the latest official figures,
http://rosebud.ml.org/~edd 43% of all statistics are totally worthless.
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: