aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhwdetect2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwdetect b/hwdetect
index d99813a..7a79b41 100755
--- a/hwdetect
+++ b/hwdetect
@@ -95,7 +95,7 @@ if [ "`find /sys/devices -name 'id' | grep /pnp`" ]; then
fi
# IDE disks/cdroms/floppy/tape
-if [ -d /proc/ide ]; then
+if [ "`find /proc/ide -name 'media'`" ]; then
for i in $(cat `find /proc/ide -name "media"`); do
case $i in
cdrom) modprobe -i --show-depends ide-cd >> /tmp/modules-plain 2>/dev/null ;;