From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Tue, 23 Mar 2004 19:25:27 +0000 Subject: [PATCH] small ide-devfs.sh fix Message-Id: <20040323192527.GA9370@wonderland.linux.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="pWyiEgJYm5f9v55/" List-Id: To: linux-hotplug@vger.kernel.org --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The file may not exist and errors would be spewed on the console. -- ciao, | Marco | [5277 scT00UUIjEiXA] --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ide-devfs_fix_no_media diff -ruNp udev-022.orig/extras/ide-devfs.sh udev-022/extras/ide-devfs.sh --- udev-022.orig/extras/ide-devfs.sh 2004-03-13 00:53:56.000000000 +0100 +++ udev-022/extras/ide-devfs.sh 2004-03-21 13:30:23.000000000 +0100 @@ -35,7 +35,7 @@ get_dev_number() { echo $((${num} - 1)) } -if [ -z "$3" ]; then +if [ -z "$3" -a -f /proc/ide/${1}/media ]; then MEDIA=`cat /proc/ide/${1}/media` if [ "${MEDIA}" = "cdrom" ]; then echo ide/host${HOST}/bus${BUS}/target${TARGET}/lun0/cd cdroms/cdrom`get_dev_number $1 cdrom` --pWyiEgJYm5f9v55/-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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