From dpelleg+@cs.cmu.edu  Mon Nov  8 12:05:12 2004
Return-Path: <dpelleg+@cs.cmu.edu>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0749416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Nov 2004 12:05:12 +0000 (GMT)
Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AD4F843D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Nov 2004 12:05:11 +0000 (GMT)
	(envelope-from dpelleg+@cs.cmu.edu)
Received: from palraz.wburn (palraz [192.168.1.1])
	by gw.pelleg.org (Postfix) with ESMTP id 832625A53
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Nov 2004 07:05:10 -0500 (EST)
Received: by palraz.wburn (Postfix, from userid 7675)
	id 64FC9FF0; Mon,  8 Nov 2004 07:05:10 -0500 (EST)
Message-Id: <20041108120510.64FC9FF0@palraz.wburn>
Date: Mon,  8 Nov 2004 07:05:10 -0500 (EST)
From: Dan Pelleg <daniel+gnats@freebsd.org>
Reply-To: Dan Pelleg <daniel+gnats@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devd does not parse external files
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         73668
>Category:       docs
>Synopsis:       devd does not parse external files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ceri
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 08 12:10:32 GMT 2004
>Closed-Date:    Mon Dec 06 18:10:46 GMT 2004
>Last-Modified:  Mon Dec 06 18:10:46 GMT 2004
>Originator:     Dan Pelleg
>Release:        FreeBSD 5.3-BETA5 i386
>Organization:
>Environment:

FreeBSD m 5.3-BETA5 FreeBSD 5.3-BETA5 #0: Sun Sep 19 02:35:12 UTC 2004     root@wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
	
>Description:

 Trying to place device entries in new files in /etc/devd does not have any effect.
If I add the following to /etc/devd.conf:
attach 10 {
        device-name "ipw[0-9]+";
        action "/etc/pccard_ether $device-name start";
};
detach 10 {
        device-name "ipw[0-9]+";
        action "/etc/pccard_ether $device-name stop";
};


 Then it has the desired effect. But if instead I place that in a file /etc/devd/ipw,
nothing happens. Running devd -D -d shows that it "parses /etc/devd", but ipw[]
is not in the list of things it matches against

	
>How-To-Repeat:
	
 Place a rule file in /etc/devd/foo, and try to attach the corresponding device.
>Fix:

	


>Release-Note:
>Audit-Trail:

From: Dan Pelleg <daniel+gnats@pelleg.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/73668: devd does not parse external files
Date: Mon, 8 Nov 2004 18:40:50 -0500

 Updated to show correct email address of originator.
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Tue Nov 9 00:04:28 GMT 2004 
Responsible-Changed-Why:  
This is actually a documentation bug; files in /etc/devd must match the 
pattern *.conf, contrary to a statement in devd(8). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73668 
Responsible-Changed-From-To: freebsd-doc->ceri 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Tue Nov 9 00:05:29 GMT 2004 
Responsible-Changed-Why:  
Whoops, assign to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73668 
State-Changed-From-To: open->patched 
State-Changed-By: ceri 
State-Changed-When: Sun Nov 28 17:44:35 GMT 2004 
State-Changed-Why:  
The devd.8 manpage has been patched in HEAD. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73668 
State-Changed-From-To: patched->closed 
State-Changed-By: ceri 
State-Changed-When: Mon Dec 6 18:10:21 GMT 2004 
State-Changed-Why:  
Merged to RELENG_5 in revision 1.12.2.1.  Thanks for the submission. 

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