summaryrefslogtreecommitdiff
path: root/udev.8
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-03 19:26:02 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:05 -0700
commit07d7cfd1fa996ea7353410dc73c8a6ef98ff4e7e (patch)
tree38b8c78ee9eebd125637a6affa659e24d890607a /udev.8
parent61219c756ad0ad622decaf81b92a558ba2a1bc59 (diff)
[PATCH] update the wildcard documentation in the man page to show the new styles supported.
Diffstat (limited to 'udev.8')
-rw-r--r--udev.822
1 files changed, 19 insertions, 3 deletions
diff --git a/udev.8 b/udev.8
index fd1b6dd228..c6a9296255 100644
--- a/udev.8
+++ b/udev.8
@@ -199,11 +199,9 @@ or specified by the
value in the
.I /etc/udev/udev.conf
file.
-The file consists of a set of lines. All empty lines and
-lines beginning with a '#' will be ignored.
.br
Every line lists a device name followed by owner, group and permission
-mode. All values are separated by colons. The name field may end with a
+mode. All values are separated by colons. The name field may contain a
wildcard to apply the values to a whole class of devices.
.br
If
@@ -221,6 +219,24 @@ ttyUSB1:0:8:0660
video*:root:video:0660
dsp1:::0666
.fi
+.P
+A number of different fields in the above configuration files support a simple
+form of wildcard matching. This form is based on the fnmatch(3) style, and
+supports the following fields:
+.RS
+.TP
+.B *
+Matches zero, one, or more characters.
+.TP
+.B ?
+Matches any single character, but does not match zero characters.
+.TP
+.B [ ]
+Matches any single character specified within the brackets. For example, the
+pattern string "tty[SR]" would match either "ttyS" or "ttyR". Ranges are also
+supported within this match with the '-' character. For example, to match on
+the range of all digits, the pattern [0-9] would be used.
+.RE
.SH "FILES"
.nf
.ft B