On Wed, Feb 26, 2014 at 9:35 PM, Lee <ny6...@gmail.com> wrote:
> Hi, I always need to reconnect my laptop pcmcia wireless card to my WAP when
> awaking from suspend. It would be nice if I could add two commands, ifconfig
> and dhpcd, to the script which controls awaking from suspend. Anyone know
> which file I can edit?

Assuming you're using pm-utils [1], inside /etc/pm/suspend add a script with:

#!/bin/bash
case $1 in
   thaw|resume)
      ifconfig <args>
      dhcp <args>
esac

and it should do the trick.

[1]: http://www.gentoo-wiki.info/Pm-utils

-- 
Poison [BLX]
Joshua M. Murphy

Reply via email to