From: Jeremy McBane <modul8r@incognito.org>
To: linux-hotplug@vger.kernel.org
Subject: PLACE directive subsumed?
Date: Fri, 30 Nov 2007 20:30:15 +0000 [thread overview]
Message-ID: <475072D7.3010308@incognito.org> (raw)
Hello,
I need to make udev rules for multiple, identical multi-port
USB-to-serial converters so the converter that's attached to a certain
USB port will always be assigned the same device nodes (or symlinks in
my example below).
In the past I was able to use the PLACE directive to do this. For
example (for a 4-port converter):
BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}="0201"
SYSFS{serial}="*-0" PLACE="1" NAME="%k" SYMLINK="ttyEDGE4_A_0_%e"
BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}="0201"
SYSFS{serial}="*-1" PLACE="1" NAME="%k" SYMLINK="ttyEDGE4_A_1_%e"
BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}="0201"
SYSFS{serial}="*-0" PLACE="2" NAME="%k" SYMLINK="ttyEDGE4_B_0_%e"
BUS="usb" SYSFS{idVendor}="1608" SYSFS{idProduct}="0201"
SYSFS{serial}="*-1" PLACE="2" NAME="%k" SYMLINK="ttyEDGE4_B_1_%e"
ln -s /dev/ttyEDGE4_A_0_ /dev/ttyA1
ln -s /dev/ttyEDGE4_A_0_1 /dev/ttyA2
ln -s /dev/ttyEDGE4_A_1_ /dev/ttyA3
ln -s /dev/ttyEDGE4_A_1_1 /dev/ttyA4
ln -s /dev/ttyEDGE4_B_0_ /dev/ttyB1
ln -s /dev/ttyEDGE4_B_0_1 /dev/ttyB2
ln -s /dev/ttyEDGE4_B_1_ /dev/ttyB3
ln -s /dev/ttyEDGE4_B_1_1 /dev/ttyB4
The problem I'm running into is that PLACE doesn't seem to be supported
in newer kernels (newer versions of udev?), i.e. Fedora 7. How would I
achieve this on a Fedora 7 box?
Thanks in advance,
-Jeremy
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2007-11-30 20:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-30 20:30 Jeremy McBane [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-12-03 18:28 PLACE directive subsumed? Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=475072D7.3010308@incognito.org \
--to=modul8r@incognito.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).