Skip to contentSkip to conversation

Request for adding slmodem rules.d and permissions.d file.

PATCH Stefan Schweizer 2 participants 2 messages Dec 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi,
I would like to request to add the slamr and slusb rules to the udev default rules file.
Currently the ebuild does:

                echo 'KERNEL="slamr", NAME="slamr0"' > \
                         ${D}/etc/udev/rules.d/55-${PN}.rules
                echo 'KERNEL="slusb", NAME="slusb0"' >> \
                         ${D}/etc/udev/rules.d/55-${PN}.rules
                dodir /etc/udev/permissions.d
                echo 'slamr*:root:dialout:0660' > \
                        ${D}/etc/udev/permissions.d/55-${PN}.permissions

but I think this is a better way to do it (notice the %n):

udev/gentoo/udev.rules 2004-12-14 19:45:33.324061480 +0100 renamed from etc/udev/rules.d/50-udev.rules 2004-12-10 11:34:18.000000000 +0100 +3 -0
diff -u /etc/udev/rules.d/50-udev.rules etc/udev/gentoo/udev.rules
@@ -147,3 +147,6 @@
 KERNEL="zappseudo",    NAME="zap/pseudo"
 KERNEL="zap[0-9]*",    NAME="zap/%n"
 
+# slmodem devices
+KERNEL="slamr", NAME="slamr%n"
+KERNEL="slusb", NAME="slusb%n"

diff -u /etc/udev/permissions.d/50-udev.permissions etc/udev/gentoo/udev.permissions
--- /etc/udev/permissions.d/50-udev.permissions 2004-12-10 11:34:18.000000000 +0100
+++ etc/udev/gentoo/udev.permissions 2004-12-14 19:46:05.809123000 +0100
@@ -203,3 +203,7 @@
sgi_fetchop:root:root:666 iseries/vcd*:root:disk:660 iseries/vd*:root:disk:660
+
+# slmodem devices
+slamr*:root:dialout:0660 +slusb*:root:dialout:0660

Stefan

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

udev/gentoo/udev.rules 2004-12-14 19:45:33.324061480 +0100 line 152

Quoted 3 lines · Stefan Schweizer
udev/gentoo/udev.rules 2004-12-14 19:45:33.324061480 +0100 renamed from etc/udev/rules.d/50-udev.rules 2004-12-10 11:34:18.000000000 +0100 +3 -0
+# slmodem devices
+KERNEL="slamr", NAME="slamr%n"
+KERNEL="slusb", NAME="slusb%n"

This looks wrong, maybe it should be KERNEL="slamr*"? But then, the rule would be a simple no-op.

If the driver is really reporting the same device name for every device then it should probably be fixed. And if only one device per system is supported, then the kernel should just report the right name.

Signature · 13 lines
ciao, |
Marco | [9791 arNlj1cZlaAyQ]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel