[ltp] rovclock and suspend2

Martin Steigerwald linux-thinkpad@linux-thinkpad.org
Tue, 27 Jun 2006 23:01:26 +0200


Am Donnerstag 22 Juni 2006 21:12 schrieb Stephan Holl:

> Where is the correct place to put the rovclock part that should be
> executed after each suspend cycle?
>
> Thanks for your help.

Hello Stephan,

if you want to be absolutely sure that it is started after everything else 
resume related has been done, you can write a small shell script like 
this:

-----------------------------------------------------------------------
#!/bin/sh

/etc/init.d/ifplugd stop
ifdown eth0
/etc/init.d/chrony stop

sync
hibernate

/etc/init.d/chrony start
/etc/init.d/ifplugd start
-----------------------------------------------------------------------

But I believe there is also a way thats better integrated with the 
hibernate script... well you could even write a scriptlet yourself and 
put it in /etc/scriptlets.d (hibernate 1.91 or 1.92 that is).

The manpages of hibernate.conf and hibernate seem to be incomplete tough.

Regards
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7