Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Oct 2000 13:24:38 -0500 (CDT)
From:      Chris Dillon <cdillon@wolves.k12.mo.us>
To:        Nick Hibma <n_hibma@FreeBSD.ORG>
Cc:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc usbd.conf
Message-ID:  <Pine.BSF.4.21.0010161316100.59185-200000@mail.wolves.k12.mo.us>
In-Reply-To: <200010161632.JAA31646@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, 16 Oct 2000, Nick Hibma wrote:

> n_hibma     2000/10/16 09:32:12 PDT
> 
>   Modified files:        (Branch: RELENG_4)
>     etc                  usbd.conf 
>   Log:
>   Remove the entry for the umass drives. It is no longer needed and has
>   been verified to work.
>   
>   Make some of the comments more useful by explaining what the commands do.
>   
>   Revision  Changes    Path
>   1.5.2.2   +7 -15     src/etc/usbd.conf

That reminds me... attached is a patch for usbd.conf that will do away
with the nasty "killall dhclient" on detach of a USB ethernet
interface.  I don't have a way to actually test this patch, but it is
simple enough that I don't think I screwed anything up.  I just know
someone is going to get bit by this in the future if it isn't fixed.
:-)

We might want to be real careful anywhere else we use "killall", as
well.

I'll paste it here, in addition to the attachment, for good measure:

--- usbd.conf	Mon Oct 16 13:09:00 2000
+++ usbd.conf.old	Mon Oct 16 13:11:19 2000
@@ -28,8 +28,8 @@
 #
 device "USB ethernet"
 	devname "[ack]ue[0-9]+"
-	attach "dhclient ${DEVNAME}"
-	detach "killall dhclient"
+	attach "dhclient -pf /var/run/dhclient.${DEVNAME}.pid ${DEVNAME}"
+	detach "kill `cat /var/run/dhclient.${DEVNAME}.pid`"
 
 # The entry below starts moused when a mouse is plugged in. Moused
 # stops automatically (actually it bombs :) when the device disappears.



-- Chris Dillon - cdillon@wolves.k12.mo.us - cdillon@inter-linc.net
   FreeBSD: The fastest and most stable server OS on the planet.
   For IA32 and Alpha architectures. IA64 and PowerPC under development.
   http://www.freebsd.org


[-- Attachment #2 --]
--- usbd.conf	Mon Oct 16 13:09:00 2000
+++ usbd.conf.old	Mon Oct 16 13:11:19 2000
@@ -28,8 +28,8 @@
 #
 device "USB ethernet"
 	devname "[ack]ue[0-9]+"
-	attach "dhclient ${DEVNAME}"
-	detach "killall dhclient"
+	attach "dhclient -pf /var/run/dhclient.${DEVNAME}.pid ${DEVNAME}"
+	detach "kill `cat /var/run/dhclient.${DEVNAME}.pid`"
 
 # The entry below starts moused when a mouse is plugged in. Moused
 # stops automatically (actually it bombs :) when the device disappears.

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010161316100.59185-200000>