* [PATCH] small ide-devfs.sh fix
@ 2004-03-23 19:25 Marco d'Itri
2004-03-27 1:21 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Marco d'Itri @ 2004-03-23 19:25 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 108 bytes --]
The file may not exist and errors would be spewed on the console.
--
ciao, |
Marco | [5277 scT00UUIjEiXA]
[-- Attachment #2: ide-devfs_fix_no_media --]
[-- Type: text/plain, Size: 520 bytes --]
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`
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] small ide-devfs.sh fix
2004-03-23 19:25 [PATCH] small ide-devfs.sh fix Marco d'Itri
@ 2004-03-27 1:21 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-03-27 1:21 UTC (permalink / raw)
To: linux-hotplug
On Tue, Mar 23, 2004 at 08:25:27PM +0100, Marco d'Itri wrote:
> The file may not exist and errors would be spewed on the console.
Applied, thanks.
greg k-h
-------------------------------------------------------
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\x1470&alloc_id638&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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-27 1:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-23 19:25 [PATCH] small ide-devfs.sh fix Marco d'Itri
2004-03-27 1:21 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).