From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0E2F7138F88 for ; Fri, 28 Feb 2014 02:35:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60497E0B57; Fri, 28 Feb 2014 02:35:07 +0000 (UTC) Received: from mail-vc0-f196.google.com (mail-vc0-f196.google.com [209.85.220.196]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 66755E0B09 for ; Fri, 28 Feb 2014 02:35:06 +0000 (UTC) Received: by mail-vc0-f196.google.com with SMTP id lf12so39054vcb.3 for ; Thu, 27 Feb 2014 18:35:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gmnYs2Wvg73E+gzjzJGpooyJsJSDy5OGAuhuLloRYRs=; b=e8Aw6F3NE7bpGPqY+SkR1kpXYC1ihqMdeI58EjvxbmjMH3Ef5+DDzhXmAPRlACJCBw kDq4oXDJMKzN6pAsFqXVaa4PoCyJ3UgMRFyvwS04zV5DU9J4PA+TxnvmCUTQCW861c/c X7jM7bY8ApA6UvUvJ0XJsz1KsxFCsZp1J06FBJAYRkoukXlu0rADiGvnujqNl4jbM0OG 7Fpg1BffywnpCJ3tFfskG/s074dAe3zjAe/eKaPz1cQNftW7iXMRL7C9pJbnLz8hXXj4 sBohoOZkvFJqMXLUeq4Zwa9H2SniCNVbwnmPQ9QBoHjuR3jesNz0n+sk9ezX0iZatiAZ wkow== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.58.200.229 with SMTP id jv5mr234032vec.15.1393554905495; Thu, 27 Feb 2014 18:35:05 -0800 (PST) Received: by 10.58.253.41 with HTTP; Thu, 27 Feb 2014 18:35:05 -0800 (PST) Received: by 10.58.253.41 with HTTP; Thu, 27 Feb 2014 18:35:05 -0800 (PST) In-Reply-To: References: Date: Thu, 27 Feb 2014 18:35:05 -0800 Message-ID: Subject: Re: [gentoo-user] Modifying Suspend Script? From: Lee To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=047d7bd6ad3c1dfef004f36e4914 X-Archives-Salt: 48bf325e-7b50-4089-9eff-08057fc82800 X-Archives-Hash: 4075e39bc58a043456f0d80c2e2e1077 --047d7bd6ad3c1dfef004f36e4914 Content-Type: text/plain; charset=ISO-8859-1 Many thanks - will try it shortly. On Feb 27, 2014 7:06 AM, "Poison BL." wrote: > On Wed, Feb 26, 2014 at 9:35 PM, Lee 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 > dhcp > esac > > and it should do the trick. > > [1]: http://www.gentoo-wiki.info/Pm-utils > > -- > Poison [BLX] > Joshua M. Murphy > > --047d7bd6ad3c1dfef004f36e4914 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Many thanks - will try it shortly.

On Feb 27, 2014 7:06 AM, "Poison BL." = <poisonbl@gmail.com> wrote:=
On Wed, Feb 26, 2014 at 9:35 PM, Lee <ny6p01@gmail.com> wrote:
> Hi, I always need to reconnect my laptop pcmcia wireless card to my WA= P when
> awaking from suspend. It would be nice if I could add two commands, if= config
> and dhpcd, to the script which controls awaking from suspend. Anyone k= now
> 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
=A0 =A0thaw|resume)
=A0 =A0 =A0 ifconfig <args>
=A0 =A0 =A0 dhcp <args>
esac

and it should do the trick.

[1]: htt= p://www.gentoo-wiki.info/Pm-utils

--
Poison [BLX]
Joshua M. Murphy

--047d7bd6ad3c1dfef004f36e4914--