From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Sat, 10 Jan 2004 01:04:52 +0000 Subject: Re: Silly udev script [was Re: udev and devfs - The final word] Message-Id: <20040110010452.GJ5429@kroah.com> List-Id: References: <20040106003614.GA1043@kroah.com> In-Reply-To: <20040106003614.GA1043@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jan 06, 2004 at 05:02:34AM +0100, Kay Sievers wrote: > On Mon, Jan 05, 2004 at 04:36:14PM -0800, Greg KH wrote: > > On Mon, Jan 05, 2004 at 08:13:26AM -0800, Linus Torvalds wrote: > > > [ Yeah, that sounds like a singularly silly thing to do, but it's a good > > > example of something where there is no actual serial number, but you can > > > "identify" it automatically through its contents, and name it stably > > > according to that. ] > > > > That was such a silly thing to do, here's a script that does it, along > > with the udev rule to add to udev.rules for it. It names your cdrom > > Artist_Title, and creates a symlink called cdrom that points to it, just > > to be a tiny bit sane :) > > Hey, this is funny. > I couldn't resist to give it a try and we need a few changes: > > - it's %2c otherwise nearly all my CD's are "good", but sure I also have bad ones :) > - remove the node first, cause get_cddb() dies and leaves the old one there > - remove spaces in name, cause this is our separator Doh, that's what I get for only trying it with a 1 word title cd, and then adding error code after testing it... Thanks, I've applied your fixes. greg k-h ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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