I wrote:
I ran into this problem with eth1, my WLAN card. I found that
by moving the script from /etc/dhcp3/dhclient-enter-hooks.d to
/etc/dhcp3/dhclient-exit-hooks.d it is now executed at the
correct phase, after the interface has been given addresses.

Except ... scripts from that location aren't run when the dhcp
is invoked the very first time, only on subsequent invocations...


Is this so? At least on etch, the /etc/dhcp3/dhclient-script ends with the line
exit_with_hooks 0
and on my system, exit hooks seems to run at startup time. It seems correct to run ntp_servers_setup_add at exit hook time, and possibly keep ntp_servers_setup_remove running at enter hook time.

--
        Aleksi Suhonen

Arne Nordmark




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to