Bug 73668

Summary: devd does not parse external files
Product: Documentation Reporter: Dan Pelleg <daniel+gnats>
Component: Books & ArticlesAssignee: Ceri Davies <ceri>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dan Pelleg freebsd_committer freebsd_triage 2004-11-08 12:10:32 UTC
 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.
Comment 1 Dan Pelleg 2004-11-08 23:40:50 UTC
Updated to show correct email address of originator.
Comment 2 Ceri Davies freebsd_committer freebsd_triage 2004-11-09 00:04:28 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-doc

This is actually a documentation bug; files in /etc/devd must match the 
pattern *.conf, contrary to a statement in devd(8).
Comment 3 Ceri Davies freebsd_committer freebsd_triage 2004-11-09 00:05:29 UTC
Responsible Changed
From-To: freebsd-doc->ceri

Whoops, assign to me.
Comment 4 Ceri Davies freebsd_committer freebsd_triage 2004-11-28 17:44:35 UTC
State Changed
From-To: open->patched

The devd.8 manpage has been patched in HEAD.
Comment 5 Ceri Davies freebsd_committer freebsd_triage 2004-12-06 18:10:21 UTC
State Changed
From-To: patched->closed

Merged to RELENG_5 in revision 1.12.2.1.  Thanks for the submission.