On Thu, Feb 27, 2014 at 10:04:43AM -0500, Poison BL. wrote:
> 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

This worked like a charm. Except the dir was sleep.d, not suspend. Thanks!


Reply via email to