Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Jul 2002 11:41:41 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Larry Rosenman <ler@lerctr.org>
Cc:        freebsd-mobile@FreeBSD.org, David Wolfskill <david@catwhisker.org>
Subject:   Re: Script to run AFTER DHCP address assigned to wi0?
Message-ID:  <XFMail.20020701114141.jhb@FreeBSD.org>
In-Reply-To: <1025537584.411.1.camel@lerlaptop.iadfw.net>

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

On 01-Jul-2002 Larry Rosenman wrote:
> On Mon, 2002-07-01 at 10:30, John Baldwin wrote:
>> 
>> On 29-Jun-2002 David Wolfskill wrote:
>> >>From: Larry Rosenman <ler@lerctr.org>
>> >>Date: 29 Jun 2002 12:48:20 -0500
>> > 
>> >>Is there any hooks (I couldn't find any) to have a script run AFTER
>> >>dhclient assigns an IP address to wi0? 
>> > 
>> > Sure, though it's not specific to the interface in question --
>> > /etc/dhclient-exit-hooks.
>> 
>> Another possiblity is to not set the ifconfig_wi0 variable in
>> /etc/rc.conf but use a /etc/start_if.wi0 script instead that
>> runs dhclient and then sets the hostname.
> I actually let pccard.conf do the setup, and since that is later on, the
> /etc/dhclient-exit-hooks script is perfect. 
> 
> Thanks, though. 
> 
> (ifconfig_wi0 is NOT set in /etc/rc.conf).

Ah, in NEWCARD in -current it is different. (There is no
ifconfig_pccard, instead pccard and cardbus devices just appear
and act like static devices.)

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




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