* [PATCH 2/2] man: SYMLINK can be matched as well as assigned
@ 2009-08-07 12:29 Alan Jenkins
2009-08-07 12:48 ` Kay Sievers
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Alan Jenkins @ 2009-08-07 12:29 UTC (permalink / raw)
To: linux-hotplug
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>
---
udev/udev.xml | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/udev/udev.xml b/udev/udev.xml
index 0ea5892..c34a106 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>
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] man: SYMLINK can be matched as well as assigned
2009-08-07 12:29 [PATCH 2/2] man: SYMLINK can be matched as well as assigned Alan Jenkins
@ 2009-08-07 12:48 ` Kay Sievers
2009-08-07 15:02 ` Matthias Schwarzott
2009-08-07 15:13 ` Alan Jenkins
2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2009-08-07 12:48 UTC (permalink / raw)
To: linux-hotplug
On Fri, Aug 7, 2009 at 14:29, Alan Jenkins<alan-jenkins@tuffmail.co.uk> wrote:
> 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:
Applied.
Thanks,
Kay
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] man: SYMLINK can be matched as well as assigned
2009-08-07 12:29 [PATCH 2/2] man: SYMLINK can be matched as well as assigned Alan Jenkins
2009-08-07 12:48 ` Kay Sievers
@ 2009-08-07 15:02 ` Matthias Schwarzott
2009-08-07 15:13 ` Alan Jenkins
2 siblings, 0 replies; 4+ messages in thread
From: Matthias Schwarzott @ 2009-08-07 15:02 UTC (permalink / raw)
To: linux-hotplug
On Freitag, 7. August 2009, Alan Jenkins wrote:
> 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 man-pages have example-sections, why not add this rule there?
Regards
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] man: SYMLINK can be matched as well as assigned
2009-08-07 12:29 [PATCH 2/2] man: SYMLINK can be matched as well as assigned Alan Jenkins
2009-08-07 12:48 ` Kay Sievers
2009-08-07 15:02 ` Matthias Schwarzott
@ 2009-08-07 15:13 ` Alan Jenkins
2 siblings, 0 replies; 4+ messages in thread
From: Alan Jenkins @ 2009-08-07 15:13 UTC (permalink / raw)
To: linux-hotplug
Matthias Schwarzott wrote:
> On Freitag, 7. August 2009, Alan Jenkins wrote:
>
>> 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 man-pages have example-sections, why not add this rule there?
>
Awkward question. The easy answer is that this manpage doesn't have an
example-section yet. I don't think adding that rule on it's own would
help. For one, it begs an explanation of what set the by-id SYMLINK in
the first place.
I will have a look at the lonely docs/writing_udev_files. Maybe it
could fit in there.
Thanks
Alan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-08-07 15:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-07 12:29 [PATCH 2/2] man: SYMLINK can be matched as well as assigned Alan Jenkins
2009-08-07 12:48 ` Kay Sievers
2009-08-07 15:02 ` Matthias Schwarzott
2009-08-07 15:13 ` Alan Jenkins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).