=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/usbhidaction/usbhidaction.1,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- src/usr.bin/usbhidaction/usbhidaction.1 2003/01/11 11:07:50 1.3 +++ src/usr.bin/usbhidaction/usbhidaction.1 2003/06/10 09:12:12 1.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: usbhidaction.1,v 1.3 2003/01/11 11:07:50 hugh Exp $ +.\" $OpenBSD: usbhidaction.1,v 1.4 2003/06/10 09:12:12 jmc Exp $ .\" $NetBSD: usbhidaction.1,v 1.6 2002/01/18 14:38:59 augustss Exp $ .\" .\" Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -66,10 +66,11 @@ .It Fl i Ignore HID items in the config file that do not exist in the device. .It Fl f Ar device -Specify a path name for the device to operate on. If +Specify a path name for the device to operate on. +If .Ar device -is numeric, it is taken to be the USB HID device number. If it is a relative -path, it is taken to be the name of the device under +is numeric, it is taken to be the USB HID device number. +If it is a relative path, it is taken to be the name of the device under .Pa /dev . An absolute path is taken to be the literal device pathname. .It Fl v @@ -78,19 +79,21 @@ .Pp The config file will be re-read if the process gets a HUP signal. .Sh CONFIGURATION -The configuration file has a very simple format. Each line describes an -action; if a line begins with a whitespace it is considered a continuation -of the previous line. Lines beginning with `#' are considered as comments. +The configuration file has a very simple format. +Each line describes an action; if a line begins with a whitespace +it is considered a continuation of the previous line. +Lines beginning with `#' are considered as comments. .Pp Each line has three parts: a name of a USB HID item, a value for that item, -and an action. There must be whitespace between the parts. +and an action. +There must be whitespace between the parts. .Pp The item names are similar to those used by .Xr usbhidctl 1 , but each part must be prefixed by its page name. .Pp -The value is simply a numeric value. When the item reports this value -the action will be performed. +The value is simply a numeric value. +When the item reports this value the action will be performed. If the value is `*' it will match any value. .Pp The action is a normal command that is executed with