From: Stefan Schweizer <sschweizer@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Request for adding slmodem rules.d and permissions.d file.
Date: Tue, 14 Dec 2004 19:00:24 +0000 [thread overview]
Message-ID: <e79639220412141100129ccda9@mail.gmail.com> (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):
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
next reply other threads:[~2004-12-14 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-14 19:00 Stefan Schweizer [this message]
2004-12-14 19:21 ` Request for adding slmodem rules.d and permissions.d file Marco d'Itri
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=e79639220412141100129ccda9@mail.gmail.com \
--to=sschweizer@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.