From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Drake Date: Mon, 23 Feb 2004 15:01:20 +0000 Subject: Re: udev + modprobe.conf Message-Id: <403A15C0.2090403@reactivated.net> List-Id: References: <200402231720.50908.patrakov@ums.usu.ru> In-Reply-To: <200402231720.50908.patrakov@ums.usu.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hi, Alexander E. Patrakov wrote: > 1) I put the following two lines into udev.rules instead of the default cdrom > rule: > > BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/model", > RESULT="PHILIPS CDD5301", NAME="%k", SYMLINK="cdrw" > > BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/model", > RESULT="SAMSUNG CD-ROM SC-148F", NAME="%k", SYMLINK="cdrom" > > (sorry, they wrapped). Currently, the Philips drive is /dev/hdd and Samsung > is /dev/hdb. The symlinks work as expected, but I also want to have > a /dev/dvd symlink pointing to the Philips drive, in addition to the > existing /dev/cdrw symlink pointing to it. How can I do that? Separate multiple symlinks with spaces. e.g. BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/model", RESULT="PHILIPS CDD5301", NAME="%k", SYMLINK="cdrw dvd" Daniel ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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