Joe Emenaker wrote:
Jonathan Melhuish wrote:
Just a quickie - how do I specify some commands to run when I wake my
Debian laptop from hibernation? I have to restart the network manually
every time and remount my network shares.
Look in /etc/apm.d/event.d or something like that. In there, you'll
find a few scripts which are basically just "case" statements like:
Thanks for the pointer!
Perhaps it's not the most elegant way, as my APM daemon suspends and
resumes cards fine, but I put "/etc/init.d/networking restart;;" into
the 'resume' section of /etc/apm/event.d/pcmcia and then enabled the
script by putting "APM=resume" into /etc/pcmcia/apm.opts.
Which did the trick. Now I can just flip the lid open and get online in
under 5 seconds! 8-)
Cheers,
Jon