Gentoo Archives: gentoo-user

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] perm link
Date: Tue, 05 Jun 2007 13:57:45
Message-Id: 20070605154823.dd875921.hilse@web.de
1 Hi,
2
3 On Tue, 5 Jun 2007 15:32:07 +0200 Alan McKinnon
4 <alan@××××××××××××××××.za> wrote:
5
6 > You will need to create a udev rule for this
7 >
8 > Something like:
9 >
10 > # cdrom symlinks and other good cdrom naming
11 > KERNEL=="sr[0-9]*|hd[a-z]|pcd[0-9]*", ACTION=="add",
12 > IMPORT{program}="cdrom_id --export $tempnode"
13 > ENV{ID_CDROM}=="?*", GROUP="cdrom"
14 > # assign cdrom-permission also to associated generic device (for
15 > cd-burning ...)
16 > KERNEL=="sg[0-9]*", ACTION=="add", ATTRS{type}=="4|5", GROUP="cdrom"
17 >
18 > in /etc/udev/rules.d/50-udev.rules
19
20 It should be already there, shouldn't it?
21
22 In that case, probably /lib/udev/cdrom_id doesn't catch it, so just
23 adding the above lines another time won't help. Of course, a simple
24 rule like
25
26 KERNEL=="sg0", SYMLINK="dvd"
27
28 should be enough. And you certainly shouldn't edit distribution
29 provided udev rules w/o good reason, but rather create a new rules file
30 below /etc/udev/rules.d (so that further distribution updates of udev
31 don't require you to merge config files).
32
33 -hwh
34 --
35 gentoo-user@g.o mailing list