Gentoo Archives: gentoo-user

From: Lee <ny6p01@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Modifying Suspend Script?
Date: Fri, 28 Feb 2014 02:35:16
Message-Id: CABpw4G-_jP-m50TwjR2eyA5OZDzLj1-b3vsD0k1+2PcjeQJW=w@mail.gmail.com
In Reply to: Re: [gentoo-user] Modifying Suspend Script? by "Poison BL."
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 >