Re: /etc/init.d/hwclock.sh behaviour
Quoting Dennis van Dok (d.vandok@ecn.nl):
>
> from the documentation of util-linux (in frozen) I got the advice not to
> use the hwclock --adjust feature, as it is potentially dangerous (if
> some other program messes with the CMOS clock). My question is: what
> alternatives do I have? I don't have a network connection on my home
> box. I leave my computer off for long periods (days, even weeks) and
> find that the hw clock is drifting pretty bad. I don't want to set my
> system clock every time I boot, especially since this might introduce
> &pi0;time warps' in the system.
>
> IMHO, the hwclock --adjust feature is about the best I can do for
> getting my clock to behave. If I find out the systematic drift over a
> period of several months, I should be OK. But Debians policy is to store
> the system time in the hwclock on shutdown, so my adjustments are lost.
Just put # at the start of the six lines in /etc/init.d/hwclock.sh .
[ "$GMT" = "-u" ] && GMT="--utc"
hwclock --systohc $GMT
if [ "$VERBOSE" != no ]
then
echo "CMOS clock updated to `date`."
fi
Cheers,
--
Email: d.wright@open.ac.uk Tel: +44 1908 653 739 Fax: +44 1908 655 151
Snail: David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer: These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.
Reply to: