Re: Script to run AFTER DHCP address assigned to wi0?

John Baldwin <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
On 29-Jun-2002 David Wolfskill wrote:
>>From: Larry Rosenman <[email protected]>
>>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.

-- 

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

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.