From mboxrd@z Thu Jan 1 00:00:00 1970 From: Piter PUNK Date: Sun, 21 Dec 2008 21:52:56 +0000 Subject: Re: Moving Ubuntu to upstream udev rules Message-Id: <494EBAB8.4000206@unitednerds.org> List-Id: References: <1229669228.14012.30.camel@quest> In-Reply-To: <1229669228.14012.30.camel@quest> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Kay Sievers wrote: > On Fri, Dec 19, 2008 at 17:03, Kay Sievers wrote: > # is it /devsr0 or /dev/sdc0? > SUBSYSTEM="block", KERNEL="sr[0-9]*", NAME="scd%n", SYMLINK+="sr% I think it's OK. From devices.txt: --- The prefix /dev/sr (instead of /dev/scd) has been deprecated. ( ... ) (in recommended links) /dev/scd? sr? hard Alternate SCSI CD-ROM name --- The recommendation is to have a hardlink here. But i think symlink is OK. > # rtc in group "audio"? > SUBSYSTEM="rtc", GROUP="audio" To me, this is still very bizarre. > # which ones do we need, not need? + X0R -> null + ramdisk -> ram0 o ram -> ram1 x lirc -> lirc0 x vbi -> vbi0 + radio -> radio0 x video -> video0 x fb -> fb0 + ftape -> qft0 x sbpcd -> sbpcd0 o xpram* -> slram* The ones with + are from devices.txt. The links mark with x I thought they can still be there. Is common to point the /dev/foo symlink to the current /dev/fooN that's in use (usually the first one, foo0). If user don't wants these links he can always overwrite those links with custom rules in /etc/udev/rules.d. I don't know about the ones I mark with o. > # group nvram needed? > nvram GROUP="nvram" > > # what are the right permissions? > fuse GROUP="666" > tty[0-9]* GROUP="600" I like tty with MODE="0620". But 600 isn't bad. The udev rules shipped with fuse-2.7.4 have MODE="0666" in there. Maybe isn't better to leave this to fuse package? Piter PUNK