[PATCH] dhclient active interface detection patch
Martin Blapp
mb at imp.ch
Mon Apr 21 15:13:05 PDT 2003
Hi all,
Just to note. If you start your laptop without net connection
it will hang when dhclient gets started. To prevent/workaround
this, you'll have to add the option -nw.
Of course one could just skip the autodetection of the interface
and proceed anyway. But then the polling is not done and one has
still to restart dhclient manually.
I added this to the patchset I've made together with two different
minor fixes.
I beleave that this patch now really works good for all cases.
--- etc/rc.d/dhclient.orig Tue Apr 22 00:00:05 2003
+++ etc/rc.d/dhclient Tue Apr 22 00:00:16 2003
@@ -17,7 +17,7 @@
. /etc/network.subr
name="dhclient"
-command="/sbin/${name}"
+command="/sbin/${name} -nw"
pidfile="/var/run/${name}.pid"
case "${OSTYPE}" in
FreeBSD)
More information about the freebsd-hackers
mailing list