Re: equivalent of /etc/dhclient-enter-hooks with NM and FC3



On Fri, 2005-01-14 at 10:08 -0600, Peter Wittich wrote:
> I am using NM on Fedora core 3 on a dell latittude d600, TrueMobile
> 1300 with the linuxant wrapper. Very nice! this is a great project.
> 
> One thing I have not figured out how to do is to get back the
> functionality of dhclient-enter-hooks and dhclient-exit-hooks which I
> had when using the old method of dhcp. I used these to modify the
> returned "search" bit in resolv.conf since the dhcp server I use
> doesn't set it to what I want by default, and also to add the current
> ip address for my local node to /etc/hosts. Is there a way of doing
> this with NetworkManager?

Peter,

You'll see in the NetworkManager package a binary called
NetworkManagerDispatcher, which currently will listen for and respond to
signals from NM about network device changes.  It calls scripts
in /etc/NetworkManager.d when that happens.  While it doesn't get called
for DHCP changes yet, perhaps it could be, and could be used to rewrite
and 'kill -HUP' the named process.  Would that work for you?  Colin W.
might also have ideas on this.

Dan




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]