Re: Bug#629060: update-hostname vs. network-manager
On Freitag, 3. Juni 2011, Holger Levsen wrote:
> On Freitag, 3. Juni 2011, Klaus Knopper wrote:
> > Why not put update-hostname (or a symlink thereof) into
> > /etc/network/if-up.d, so it always gets executed whenever the client
> > gets a new IP address assigned?
> sounds like a great plan!
just the implementation details make me cry:
currently we have:
/etc/init.d/update-hostname
then we have (notice how nicely the name is twisted):
/etc/dhcp/dhclient-exit-hooks.d/hostname-update
which calls
/usr/sbin/update-hostname-from-ip
OH! On a closer look I see that update-hostname also calls update-hostname-
from-up so thats a bit saner.
still I'm thinking whether the dhclient-exit-hook should be moved to
/etc/network/if-down.d for consistency reasons?
opinions?
cheers,
Holger
Reply to: