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