On Aug 09, "Jean-Luc Coulon (f5ibh)" <[EMAIL PROTECTED]> wrote:

> I had the following lines in /etc/modules:
> 
> ide-cd
> ide-generic

> This was needed whan I've installed my system otherwise the CD burner  
> was not found at all.
ide-cd is definitely needed by a CD reader, but recent hotplug versions
can autoload it.
I do not understand why the device owner should change if the module
were loaded a few seconds later at boot time.

> Now, I've removed the first line (ide-generic is still needed) and this  
Needed by what? I think it should be autoloaded anyway, if it were
actually needed.

Let's try again, with ide-cd in /etc/modules and a script like this one
with PROGRAM="/path/script.sh %k":

#!/bin/sh

FILE=/proc/ide/$1/media

while [ ! -e $FILE ]; do
  echo "Waiting for $FILE..." >> /dev/idemedia.log
  sleep 1
done

MEDIA=$(/bin/cat $FILE)

echo "$FILE: $MEDIA" >> /dev/idemedia.log

echo $MEDIA

And then report the content of /dev/idemedia.log.

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature

Reply via email to