summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/bin/hwautocfg
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-26 18:44:43 +0100
committerDirk von Suchodoletz2009-02-26 18:44:43 +0100
commit7100688c9a9fffc13d73fbe46e5ad48865674c0d (patch)
treeb7ac06864cc19e32f84b8bd6562413ea50829e9f /initramfs/stage3-stuff/bin/hwautocfg
parentxserver plugin: (diff)
downloadcore-7100688c9a9fffc13d73fbe46e5ad48865674c0d.tar.gz
core-7100688c9a9fffc13d73fbe46e5ad48865674c0d.tar.xz
core-7100688c9a9fffc13d73fbe46e5ad48865674c0d.zip
Small fix for SuSE10.2 functions, load the ide-disk module as
needed in older systems to access harddisks. git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2647 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/stage3-stuff/bin/hwautocfg')
-rwxr-xr-xinitramfs/stage3-stuff/bin/hwautocfg3
1 files changed, 2 insertions, 1 deletions
diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg
index 39969808..5bb4885b 100755
--- a/initramfs/stage3-stuff/bin/hwautocfg
+++ b/initramfs/stage3-stuff/bin/hwautocfg
@@ -57,7 +57,8 @@ mdev -s
#( hwinfo --bluetooth >/etc/hwinfo.bt ) &
# load harddisk driver and check for harddisk
-( grep -q -E "IDE|SCSI" /etc/hwinfo.data && modprobe ${MODPRV} sd_mod
+( grep -q -E "IDE|SCSI" /etc/hwinfo.data && { \
+ modprobe ${MODPRV} sd_mod ; modprobe ${MODPRV} ide-disk; }
hwinfo --disk | sed -n "/Device File: /p" | \
sed -e "s|.*Device File: /dev/||;s| .*||" >/etc/hwinfo.disk
echo "disk detection finished at $(sysup)" >/tmp/diskready; ) &