From pa4dan@Vitsch.net  Thu Oct 28 12:22:43 2004
Return-Path: <pa4dan@Vitsch.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EF95816A4CE
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 28 Oct 2004 12:22:43 +0000 (GMT)
Received: from amsfep18-int.chello.nl (amsfep18-int.chello.nl [213.46.243.13])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8588243D46
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 28 Oct 2004 12:22:42 +0000 (GMT)
	(envelope-from pa4dan@Vitsch.net)
Received: from Vitsch.net ([212.187.78.35]) by amsfep18-int.chello.nl
          (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP
          id <20041028122240.BMMK3605.amsfep18-int.chello.nl@Vitsch.net>
          for <FreeBSD-gnats-submit@FreeBSD.org>;
          Thu, 28 Oct 2004 14:22:40 +0200
Received: (from pa4dan@localhost)
	by Vitsch.net (8.12.3p2/8.11.3) id i9SCMYvY082059;
	Thu, 28 Oct 2004 14:22:34 +0200 (CEST)
	(envelope-from pa4dan)
Message-Id: <200410281222.i9SCMYvY082059@Vitsch.net>
Date: Thu, 28 Oct 2004 14:22:34 +0200 (CEST)
From: "Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net>
Reply-To: "Daan Vreeken [PA4DAN]" <Danovitsch@Vitsch.net>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc:
Subject: [PATCH] Teach usbd.conf about axe(4) devices
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73239
>Category:       conf
>Synopsis:       [usb] [patch] Teach usbd.conf about axe(4) devices
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    iedowse
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 28 12:30:20 GMT 2004
>Closed-Date:    Sun Feb 06 17:12:55 GMT 2005
>Last-Modified:  Sun Feb 06 17:12:55 GMT 2005
>Originator:     Daan Vreeken [PA4DAN]
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD Racebeest.Danovitsch.LAN 5.1-RELEASE FreeBSD 5.1-RELEASE #24: Thu Oct 28 11:47:02 CEST 2004 root@:/usr/src.5.1/sys/i386/compile/Laptop i386


	
>Description:
	When plugging in a USB ethernet device, usbd will start
/etc/pccard_ether to configure the interface. This is done for all devices,
except for axe(4) devices.
>How-To-Repeat:
	Add the next 2 lines to /etc/rc.conf :
		removable_interfaces="axe0"
		ifconfig_axe0="10.0.0.1"

	Now make sure usbd is running and plug in a device that is supported
by the axe(4) driver.

	Type 'ifconfig axe0' to see that the device didn't get configured
automatically.
>Fix:

	Apply the following patch (to -current). This makes the regexp for
USB ether devices also match axe interfaces.

--- usbd.conf.diff begins here ---
--- /etc/usbd.conf.org	Thu Oct 28 13:36:49 2004
+++ /etc/usbd.conf	Thu Oct 28 13:57:49 2004
@@ -27,7 +27,7 @@
 # it shouldn't be too big a deal :-)
 #
 device "USB ethernet"
-	devname "[ackr]ue[0-9]+"
+	devname "([ackr]u|ax)e[0-9]+"
 	attach  "/etc/pccard_ether ${DEVNAME} start"
 	detach  "/etc/pccard_ether ${DEVNAME} stop"
 
--- usbd.conf.diff ends here ---



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-usb 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Nov 4 07:40:17 GMT 2004 
Responsible-Changed-Why:  
Reassign to appropriate mailing list. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73239 
State-Changed-From-To: open->patched 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 28 20:44:49 GMT 2004 
State-Changed-Why:  

Committed to -current, thanks. 


Responsible-Changed-From-To: freebsd-usb->iedowse 
Responsible-Changed-By: iedowse 
Responsible-Changed-When: Sun Nov 28 20:44:49 GMT 2004 
Responsible-Changed-Why:  

My reminder to MFC. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73239 
State-Changed-From-To: patched->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Feb 6 17:08:16 GMT 2005 
State-Changed-Why:  

Finally MFC'd to RELENG_5. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73239 
>Unformatted:
