From owner-man-jp-reviewer@jp.freebsd.org  Mon Mar  6 12:36:06 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id MAA48473;
	Mon, 6 Mar 2000 12:36:06 +0900 (JST)
	(envelope-from owner-man-jp-reviewer@jp.FreeBSD.org)
Received: from smtp2.interramp.com (smtp2.interramp.com [38.8.200.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id MAA48467
	for <man-jp-reviewer@jp.freebsd.org>; Mon, 6 Mar 2000 12:36:03 +0900 (JST)
	(envelope-from horikawa@psinet.com)
Received: from [38.26.194.89] (helo=localhost)
	by smtp2.interramp.com with esmtp (Exim 1.90 #1)
	for man-jp-reviewer@jp.freebsd.org
	id 12RoJL-0003CB-00; Sun, 5 Mar 2000 22:36:00 -0500
To: man-jp-reviewer@jp.freebsd.org
X-Mailer: Mew version 1.93 on Emacs 19.28 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20000305223833M.horikawa@psinet.com>
Date: Sun, 05 Mar 2000 22:38:33 -0500
From: Kazuo Horikawa <horikawa@psinet.com>
X-Dispatcher: imput version 980905(IM100)
Lines: 202
Reply-To: man-jp-reviewer@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: man-jp-reviewer 2013
Subject: [man-jp-reviewer 2013] usbd.conf.5
Errors-To: owner-man-jp-reviewer@jp.freebsd.org
Sender: owner-man-jp-reviewer@jp.freebsd.org
X-Originator: horikawa@psinet.com

 $BKY@n$G$9!#(B

 usbd.conf.5 $B$NK]Lu$G$9!#(B

 $B86J8$N(B Fl -d $B$H(B Fl -v $B$O(B Fl d $B$H(B Fl v $B$KD>$7!"(Bsend-pr $B$b(B
$B$7$F$*$-$^$7$?!#(B

--- usbd.conf.5.bak	Sun Mar  5 21:49:25 2000
+++ usbd.conf.5	Sun Mar  5 22:15:57 2000
@@ -28,96 +28,99 @@
 .\" Many parts of this manual have been snarfed from the pccard.conf (5) man
 .\" page, copyright by Andrew McRae.
 .\"
-.Dd November 19, 1999
 .\" jpman %Id: usbd.conf.5,v 0.0 2000/02/06 08:09:51 horikawa Stab %
+.Dd November 19, 1999
 .Dt USBD.CONF 5
 .Os FreeBSD
-.Sh NAME
+.Sh $BL>>N(B
 .Nm usbd.conf
 .Nd
 .Xr usbd 8
-configuration file
-.Sh DESCRIPTION
-The
+$B$N@_Dj%U%!%$%k(B
+.Sh $B2r@b(B
 .Nm
-file is the configuration file for the
+$B%U%!%$%k$O!"(B
 .Xr usbd 8
-daemon. It provides information to allow execution of userland commands
-on events reported by the
+$B%G!<%b%sMQ$N@_Dj%U%!%$%k$G$9!#(B
+$B%+!<%M%k$N(B
 .Xr usb 4
-subsystem in the kernel. Currently the only events are device attach and
-detach, but could in the future be extended to include power management
-functions.
-.Pp
-The configuration file consists of a sorted list of entries. Each entry
-describes a set of criteria commands. When an event occurs, the criteria
-are checked and if met, the commands for that event are executed through
-a shell. The list is sorted and scanned from top to bottom. The first
-matching entry is used for an event.
-.Pp
-Each entry contains a number of fields. There are 3 types of fields:
-descriptive fields, selection criteria and commands to execute on
-events. The field name is case sensitive and should be all lower case.
-Each field can have one or more arguments.
+$B%5%V%7%9%F%`$,Js9p$7$?%$%Y%s%H$KBP1~$9$k%f!<%6%i%s%I%3%^%s%I$r(B
+$B<B9T2DG=$H$9$k$?$a$K!">pJs$rDs6!$7$^$9!#(B
+$B8=:_$N$H$3$m!"%$%Y%s%H$O%G%P%$%9$N@\B3$H@Z$jN%$7$N$_$G$9$,!"(B
+$B>-MhE*$K$OEE8;@)8f5!G=$b4^$a$F3HD%2DG=$G$9!#(B
+.Pp
+$B@_Dj%U%!%$%k$O!"%=!<%H$5$l$?%(%s%H%j%j%9%H$+$i@.$j$^$9!#(B
+$B3F%(%s%H%j$O!";v>]%3%^%s%I$N=89g$r5-=R$7$^$9!#(B
+$B%$%Y%s%HH/@8;~$K$O!";v>]$,%A%'%C%/$5$l9gCW$9$k$H!"(B
+$B$3$N%$%Y%s%H$KBP1~$9$k%3%^%s%I$,%7%'%k$rDL$8$F<B9T$5$l$^$9!#(B
+$B%j%9%H$O!"%=!<%H$5$l$F!"@hF,$+$iKvHx$^$GAv::$5$l$^$9!#(B
+$B:G=i$K%^%C%A$7$?%(%s%H%j$,!"%$%Y%s%H$KBP$7$F;HMQ$5$l$^$9!#(B
+.Pp
+$B3F%(%s%H%j$O$$$/$D$+$N%U%#!<%k%I$+$i@.$j$^$9!#(B
+$B%U%#!<%k%I$K$O(B 3 $B<oN`$"$j!"(B
+$B5-=R%U%#!<%k%I$H!"A*Br;v>]$H!"%$%Y%s%HH/@8;~$K<B9T$9$k%3%^%s%I$G$9!#(B
+$B%U%#!<%k%IL>$K$OBgJ8;z>.J8;z$N6hJL$,$"$j!"$9$Y$F>.J8;z$G$"$k$Y$-$G$9!#(B
+$B3F%U%#!<%k%I$O(B 1 $B8D0J>e$N0z?t$r<h$jF@$^$9!#(B
 .Pp
-The following fields are available:
+$B<!$N%U%#!<%k%I$r;HMQ2DG=$G$9(B:
 .Bl -tag -width devicename\ <Id>
 .It device Ar string
-Start a new entry.
+$B?75,%(%s%H%j$r3+;O$7$^$9!#(B
 .Ar string
-is an arbitrary string used for pretty printing.
+$B$OG$0U$NJ8;zNs$G$"$j!"e:No$KI=<($9$k$?$a$K;HMQ$5$l$^$9!#(B
 .It product Ar id
-Product Id
+$B%W%m%@%/%H(B Id$B!#(B
 .It vendor Ar id
-Vendor Id
+$B%Y%s%@(B Id$B!#(B
 .It release Ar id
-Release Id, also called revision Id sometimes.
+$B%j%j!<%9(B Id$B!#%j%S%8%g%s(B Id $B$H8F$P$l$k$3$H$b$"$j$^$9!#(B
 .It class Ar id
-Device Class
+$B%G%P%$%9%/%i%9!#(B
 .It subclass Ar id
-Device Subclass
+$B%G%P%$%9%5%V%/%i%9!#(B
 .It protocol Ar id
-Device Protocol
+$B%G%P%$%9%W%m%H%3%k!#(B
 .It devname Ar string
-Device name, for example umass2, or ums0. These device names can contain
-regular expressions. See
+$B%G%P%$%9L>$G$"$j!"Nc$($P(B umass2 $B$d(B ums0 $B$G$9!#(B
+$B$3$l$i$N%G%P%$%9L>$K$O!"@55,I=8=$r4^$_F@$^$9!#(B
 .Xr regex 3
-and
-.Xr re_format 7 .
-The device name that is matched can be used in the commands below
-through adding ${DEVNAME} somewhere in that string.
+$B$H(B
+.Xr re_format 7
+$B$r;2>H$7$F$/$@$5$$!#(B
+$B%^%C%A$7$?%G%P%$%9L>$O!"(B${DEVNAME} $B$rJ8;zNsCf$N$I$3$+$KDI2C$9$k$3$H$G!"(B
+$B8e=R$N%3%^%s%I$K$*$$$F;HMQ2DG=$G$9!#(B
 .El
 .Pp
-String arguments may be quoted. If a string argument contains a space or
-tab character it needs to be enclosed in single or double quotes. If an
-argument contains a single or double quote, that quote needs to be
-enclosed in double or single quotes respectively. See below for
-examples.
-.Pp
-Numeric arguments can either be specified in decimal (42), octal (052) or
-hexadeximal (0x2a).
-.Pp
-The values for the fields
-.Li product , vendor , release, class , subclass
-and
+$BJ8;zNs0z?t$O3g$k$3$H$,$G$-$^$9!#(B
+$BJ8;zNs0z?t$K6uGr$d%?%VJ8;z$r4^$`>l9g$K$O!"(B
+$BJ8;zNs0z?t$r%7%s%0%k%/%)!<%H$^$?$O%@%V%k%/%)!<%H$G3g$kI,MW$,$"$j$^$9!#(B
+$B0z?t$K%7%s%0%k%/%)!<%H$^$?$O%@%V%k%/%)!<%H$r4^$`>l9g!"(B
+$B$=$l$>$l%@%V%k%/%)!<%H$^$?$O%7%s%0%k%/%)!<%H$G3g$kI,MW$,$"$j$^$9!#(B
+$B8e=R$N;HMQNc$r;2>H$7$F$/$@$5$$!#(B
+.Pp
+$B?tCM0z?t$O!"(B10 $B?J?t(B (42)$B!"(B8 $B?J?t(B (052)$B!"(B16 $B?J?t(B (0x2a) $B$N(B
+$B$$$:$l$G$b;XDj2DG=$G$9!#(B
+.Pp
+$B%U%#!<%k%I(B
+.Li product , vendor , release, class , subclass ,
 .Li protocol
-can be retrieved by killing the
+$B$KBP$9$kCM$O!"(B
 .Nm usbd
-daemon and running it with the
-.Fl -d
-and
-.Fl -v
-flags.
+$B%G!<%b%s$r;&$7$F$+$i(B
+.Fl d
+$B$H(B
+.Fl v
+$B$N%U%i%0$rIU$1$F5/F0$9$k$3$H$K$h$j<hF@2DG=$G$9!#(B
 .Pp
-Commands to be executed when the action is matched:
+$B%"%/%7%g%s$,%^%C%A$7$?>l9g$K<B9T$9$k%3%^%s%I(B:
 .Bl -tag -width devicename\ <Id>
 .It attach Ar string
-Shell command to execute when a device is attached.
+$B%G%P%$%9$,@\B3$5$l$?$H$-$K<B9T$5$l$k%7%'%k%3%^%s%I!#(B
 .It detach Ar string
-Shell command to execute when a device is detached.
-.Sh EXAMPLES
-A sample entry to rescan the SCSI bus on connection of a
-.Tn "Iomega USB Zip Drive" :
+$B%G%P%$%9$,@Z$jN%$5$l$?$H$-$K<B9T$5$l$k%7%'%k%3%^%s%I!#(B
+.Sh $B;HMQNc(B
+.Tn "Iomega USB Zip Drive"
+$B$N@\B3$K:]$7$F!"(BSCSI $B%P%9$r:F%9%-%c%s$9$k%5%s%W%k%(%s%H%j(B:
 .Bd -literal
    device "USB Zip drive"
       product 0x0001
@@ -126,23 +129,23 @@
       attach "/usr/bin/camcontrol rescan bus 0"
 .Ed
 .Pp
-To start up moused for a newly attached mouse:
+$B?75,$K@\B3$5$l$?%^%&%9$KBP$7$F(B moused $B$r5/F0$9$k$K$O(B:
 .Bd -literal
    device "Mouse"
       devname "ums[0-9]+"
       attach "/usr/sbin/moused -p /dev/${DEVNAME} -I /var/run/moused.${DEVNAME}.pid"
 .El
-.Sh FILES
+.Sh $B4XO"%U%!%$%k(B
 .Bl -tag -width /etc/pccard.conf -compact
 .It Pa /etc/usbd.conf
-The
 .Nm usbd
-configuration file.
+$B$N@_Dj%U%!%$%k(B
 .El
-.Sh SEE ALSO
+.Sh $B4XO"9`L\(B
 .Xr usb 4 ,
 .Xr usbd 8 ,
 .Xr usbdevs 8
-.Sh AUTHORS
-The man page for the usbd configuration file was written by
-.An Nick Hibma Aq n_hibma@freebsd.org .
+.Sh $B:n<T(B
+usbd $B$N@_Dj%U%!%$%k$N%^%K%e%"%k%Z!<%8$O(B
+.An Nick Hibma Aq n_hibma@freebsd.org
+$B$,5-=R$7$^$7$?!#(B
