summaryrefslogtreecommitdiff
path: root/udev.8
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-11 01:37:18 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commit558f80ba649fb5b8c2ac2a51e464f1aa07aa791d (patch)
treedd145627182985dea2f9dfa6f3a3bcfab53a708d /udev.8
parent35b38379bac87ebf4d0cc6884feff588ee859d5f (diff)
[PATCH] callout part selector tweak
Martin Schwenke <martin@meltin.net> asked for this feature and posted a patch: The following patch almost let's me have the following configuration: PROGRAM="/sbin/aliaser %b %k %n %M %m", RESULT="?*", NAME="%c{1}", SYMLINK="%c{2+}" allowing me to specify an arbitrary number of symlinks by saying "giveme the second and later words"." Here is the actual version with tests and a few words in the man page.
Diffstat (limited to 'udev.8')
-rw-r--r--udev.85
1 files changed, 4 insertions, 1 deletions
diff --git a/udev.8 b/udev.8
index d5d9549113..b367d39813 100644
--- a/udev.8
+++ b/udev.8
@@ -253,7 +253,10 @@ field for the obvious reason.)
.br
A single part of the string, separated by a space character
may be selected by specifying the part number as a attribute:
-.BI %c{ part }
+.BI %c{ N }
+If the number is followed by the + char this part plus
+all remaining parts of the result string are substituted:
+.BI %c{ N+ }
.TP
.BI %s{ filename }
The content of a sysfs attribute.