if it only has to run those commands just make to files:
one called hwsync-susp and the other hwsync-resume
put the line
#!/bin/sh
at the top and the hwclock line below it in the file were you want it
respectively
then a chmod +x <filename>
Now I take it there are two directories, one for suspend-scripts and one
for resume-scripts if so they will be run automaticly (probably via
run-parts).
Now in this case files there will eb run in alfabetical order which might
be of any assential point here (meaning you have to see what is doen in
the other scripts and if the hwclock thing needs to be doen before/after
it to overcome possible conflicts).
hope this helps a bit,
cheers and good luck!
On Mon, 14 Aug 2000, Bryan K. Walton wrote:
> Hey,
> Ben Sunshine-Hill found the problem. My hardware clock was simply
> off by 5 hours. I should be 5 hours behind GMT, but my hardware clock was
> reporting itself to be 10 hours behind GMT. Not sure how that happened
> ("date" was reporting the correct timezone --CDT). I reset the hardware
> clock using hwclock, and now my hardware clock and system clock are
> roughly equivalent to what an NTP server says. As for APM suspend and
> resume, Ben says I need a script in /etc/apm/ that runs "hwclock --systohc
> --utc" in a script in suspend.d/, and "hwclock --hctosys --utc" in
> resume.d/. Don't know how to compose such a script though. Any advice?
>
> Thanks,
> Bryan
>
>
> > When you resume it usually sync's with the hardware clock, but if your
> > hardware is on GMT/UTC you have to tell it so, otherwise it is treated as
> > local time.
> >
> > * Heather * star@ many places...
> >
>
> ***********************************************************************
> Bryan K. Walton
> Network Operations Center Analyst
> Berbee
> 5520 Research Park Drive Madison, Wisconsin 53711
> [EMAIL PROTECTED]
> 608.288.3000
>
> Berbee...putting the E in business
>
>
>
>
>
>
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>
-----------
Andor Demarteau
[EMAIL PROTECTED]
-----------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]