[wellylug] Clock
Rob Stockley
wellylug at mowgli.net.nz
Wed Feb 9 22:33:48 NZDT 2005
Grant McLean wrote:
>On Wed, 2005-02-09 at 21:19 +1300, Steven Mulvay wrote:
>
>
>>Hi all,
>>Does anyone here know how to stop Linux from syncing the hardware clock
>>to system time on shutdown?
>>
>>
>
>My Debian distibution has the file:
>
> /etc/rc0.d/K25hwclock.sh
>
>removing it (or renaming it to k25hwclock.sh) should stop the save.
>
>Cheers
>Grant
>
>
Runlevel 0 will take care of halting but you'll find a reboot (runlevel
6) will still sync your clock under Debian. You can safely delete both
/etc/rc0.d/K25hwclock.sh and /etc/rc6.d/K25hwclock.sh as they are just
symlinks to the actual script in /etc/init.d.
To replace them at a later stage you should switch to the root account
and type;
update-rc.d hwclock.sh stop 25 0 6 .
To be even safer you could use;
su -c 'update-rc.d hwclock.sh stop 25 0 6 .'
This will ask for the root password, perform the command then
automagically set you back as yourself. No chance of messing anything
else u pby mistake.
HTH,
Rob
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 07/02/2005
More information about the wellylug
mailing list