linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Request for adding slmodem rules.d and permissions.d file.
@ 2004-12-14 19:00 Stefan Schweizer
  2004-12-14 19:21 ` Marco d'Itri
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Schweizer @ 2004-12-14 19:00 UTC (permalink / raw)
  To: linux-hotplug

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):

diff -u /etc/udev/rules.d/50-udev.rules etc/udev/gentoo/udev.rules
--- /etc/udev/rules.d/50-udev.rules     2004-12-10 11:34:18.000000000 +0100
+++ etc/udev/gentoo/udev.rules  2004-12-14 19:45:33.324061480 +0100
@@ -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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-12-14 19:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-14 19:00 Request for adding slmodem rules.d and permissions.d file Stefan Schweizer
2004-12-14 19:21 ` Marco d'Itri

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).