aboutsummaryrefslogtreecommitdiff
path: root/hwdetect
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2005-12-03 13:25:37 +0000
committerTobias Powalowski <tpowa@archlinux.org>2005-12-03 13:25:37 +0000
commitcec2d46513c7cd557f219fa2ede3c7a816a526dc (patch)
tree1fa6434bd11d8810d6a106742427c036a50f72b4 /hwdetect
parent7e18ec8806c28d52c771cacda045aa3bd81ba0b2 (diff)
downloadinitscripts-cec2d46513c7cd557f219fa2ede3c7a816a526dc.tar.xz
'upgpkg: fixed ide check'
Diffstat (limited to 'hwdetect')
-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 ;;