On Fri, May 21, 1999 at 06:48:13PM +0100, Riley Williams wrote:
> Basically, when I suspend and resume with the network driver running,
> the driver's still running after resume, but the network interface
> itself is dead. SO long as I remember to take the network down before
> suspending, it'll pick up fine when I resume though...

This seems slightly odd because on my machine the card manager automatically
suspends all the cards before the machine is suspended.  However...

> I'd very much like to know how to get apmd to automate this, 

If you want a command to be executed just before suspend then you should be
able to say

apmd -s 'my command'

and similarly with -r for a command to be executed just after resume.  In
order to do this you need the 3.0beta version of apmd which is available
from <http://www.worldvisions.ca/~apenwarr/apmd/>.  Red Hat includes this
with their version 6.0, and the above web page says that it is also included
with Debian.

If you use the Red Hat version then there is (in my opinion) a bug
in their init script: you will have to edit /etc/rc.d/init.d/apmd
and insert the word eval at the beginning of the line which says
`daemon /usr/sbin/apmd "$APMD_OPTIONS"'.  After this you should be
able to put your apmd options in /etc/sysconfig/apmd something like this.

APMD_OPTIONS="-s 'my command' -r 'another command'"

imc

Reply via email to