1 |
Many thanks - will try it shortly. |
2 |
On Feb 27, 2014 7:06 AM, "Poison BL." <poisonbl@×××××.com> wrote: |
3 |
|
4 |
> On Wed, Feb 26, 2014 at 9:35 PM, Lee <ny6p01@×××××.com> wrote: |
5 |
> > Hi, I always need to reconnect my laptop pcmcia wireless card to my WAP |
6 |
> when |
7 |
> > awaking from suspend. It would be nice if I could add two commands, |
8 |
> ifconfig |
9 |
> > and dhpcd, to the script which controls awaking from suspend. Anyone know |
10 |
> > which file I can edit? |
11 |
> |
12 |
> Assuming you're using pm-utils [1], inside /etc/pm/suspend add a script |
13 |
> with: |
14 |
> |
15 |
> #!/bin/bash |
16 |
> case $1 in |
17 |
> thaw|resume) |
18 |
> ifconfig <args> |
19 |
> dhcp <args> |
20 |
> esac |
21 |
> |
22 |
> and it should do the trick. |
23 |
> |
24 |
> [1]: http://www.gentoo-wiki.info/Pm-utils |
25 |
> |
26 |
> -- |
27 |
> Poison [BLX] |
28 |
> Joshua M. Murphy |
29 |
> |
30 |
> |