Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2003 10:52:58 +0200 (CEST)
From:      Martin Blapp <mb@imp.ch>
To:        Mark Sergeant <msergeant@snsonline.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Problem with dhclient & wi0 on resume.
Message-ID:  <20030812104605.G2686@cvs.imp.ch>

next in thread | raw e-mail | index | archive | help

Hi,

>I've got a toshiba portege 4000 with inbuilt wi0 wireless card. On
>resume dhclient kicks off straight away which then breaks as the card

You mean dhclient gets killed ? One way could be to kill dhclient when you
sleep. Afterwords, devd should restart it, right ? Unfortunatly I cannot
test this myself as resume on my lapton is horribly broken.

>isn't loaded as yet. Is there anyway to specify a sleep value for
>dhclient on resume from suspend ? I'm running current from today, I
>should note I'm also seeing a bunch of wi0 bad_alloc messages as well
>with this card. It gets quite annoying to have to restart dhclient
>everytime I resume.

There is one:

/etc/dhclient.conf
#
#
#
omapi port 7911;

/etc/sleep_dhclient

#!/bin/sh

omshell > /dev/null << EOF
connect
new control
open
set state = 3
update
close

/etc/wakeup_dhclient

#!/bin/sh

omshell > /dev/null << EOF
connect
new control
open
set state = 4
update
close

Please tell me if you have success with these.

Martin

Martin Blapp, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr@freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030812104605.G2686>