summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>2009-08-07 13:29:49 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-08-07 14:46:42 +0200
commit5bdba42ddb9cda2858e042bac991f67ae36cc888 (patch)
tree64846917ca471534103f2deb8a60bbcbc192dfc0
parent8e534e2a47385253a00ffa58247d69d079b66ca7 (diff)
man: SYMLINK can be matched as well as assigned
If by-path / by-id links don't quite do what you want, this is a nice clean way to extend the behaviour. Real example: SYMLINK=="serial/by-id/usb-Novatel_Wireless_Inc*CDMA*-if00-port0", \\ SYMLINK+="cellcard" Some users ask how to do things like this. - create an additional link with a shorter name - create a link which matches more loosely (omit certain path segments e.g. serial numbers) - change permissions on certain USB device nodes Allow them to realize this without reading the friendly *.c files. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
-rw-r--r--udev/udev.xml12
1 files changed, 11 insertions, 1 deletions
diff --git a/udev/udev.xml b/udev/udev.xml
index 0ea5892c7e..c34a106d20 100644
--- a/udev/udev.xml
+++ b/udev/udev.xml
@@ -167,6 +167,16 @@
</varlistentry>
<varlistentry>
+ <term><option>SYMLINK</option></term>
+ <listitem>
+ <para>Match the name of a symlink targeting the node. It can
+ be used once a SYMLINK key has been set in one of the preceding
+ rules. There may be multiple symlinks; only one needs to match.
+ </para>
+ </listitem>
+ </varlistentry>
+
+ <varlistentry>
<term><option>SUBSYSTEM</option></term>
<listitem>
<para>Match the subsystem of the event device.</para>
@@ -295,7 +305,7 @@
<varlistentry>
<term><option>SYMLINK</option></term>
<listitem>
- <para>The name of a symlink targeting the node. Every matching rule can add
+ <para>The name of a symlink targeting the node. Every matching rule will add
this value to the list of symlinks to be created along with the device node.
Multiple symlinks may be specified by separating the names by the space
character.</para>