Gentoo Archives: gentoo-user

From: "Poison BL." <poisonbl@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Modifying Suspend Script?
Date: Thu, 27 Feb 2014 15:04:53
Message-Id: CAOTuDKqFb6m+KgYAjAYY++wFoGFz2+F0PdPPKf8LbULM-j-b8A@mail.gmail.com
In Reply to: [gentoo-user] Modifying Suspend Script? by Lee
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

Replies

Subject Author
Re: [gentoo-user] Modifying Suspend Script? Lee <ny6p01@×××××.com>
Re: [gentoo-user] Modifying Suspend Script? ny6p01@×××××.com