From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 13 Jan 2004 18:42:52 +0000 Subject: Re: [PATCH] udev - small script optimization Message-Id: <20040113184252.GB3169@kroah.com> List-Id: References: <20040113035015.GA9989@vrfy.org> In-Reply-To: <20040113035015.GA9989@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jan 13, 2004 at 04:50:15AM +0100, Kay Sievers wrote: > Optimize the scripts reflecting the now more powerful rule logic, > cause we can combine all known fields now in any order: > > The ide-devfs.sh is only executed if the kernel name matches with 'hd*': > > BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%1c %2c" > > The name_cdrom.pl is only executed for ide and scsi devices, but not for a partition. > It exits with nonzero to skip the rule if the CD is not found: > > KERNEL="[hs]d[a-z]", PROGRAM="name_cdrom.pl %M %m", NAME="%1c", SYMLINK="cdrom" > > > I'm happy for today, this was my last patch. :) Heh, nice work. Applied, thanks. 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