summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorRoot2006-11-09 22:45:32 +0100
committerRoot2006-11-09 22:45:32 +0100
commitcc9a05bb81cd64cc804b58c2c839e17363a9e1d4 (patch)
tree30d2bcd60428bcbec887a993e17343b206e21bc5 /initramfs
parentnew runvmware functionality (diff)
downloadcore-cc9a05bb81cd64cc804b58c2c839e17363a9e1d4.tar.gz
core-cc9a05bb81cd64cc804b58c2c839e17363a9e1d4.tar.xz
core-cc9a05bb81cd64cc804b58c2c839e17363a9e1d4.zip
hwsetup produces links to scd0 instead of sr0, so in presence of
sr0,1... simply links are created in hwautocfg (dsuchod) git-svn-id: http://svn.openslx.org/svn/openslx/trunk@505 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/initrd-stuff/bin/hwautocfg8
1 files changed, 6 insertions, 2 deletions
diff --git a/initramfs/initrd-stuff/bin/hwautocfg b/initramfs/initrd-stuff/bin/hwautocfg
index 4d496d5c..80221de4 100755
--- a/initramfs/initrd-stuff/bin/hwautocfg
+++ b/initramfs/initrd-stuff/bin/hwautocfg
@@ -3,7 +3,7 @@
# universal (distro independent) hardware autoconfiguration script for
# OpenSLX linux diskless clients, using hwconfig from knoppix as base tool
#
-# Dirk von Suchodoletz <dvs@OpenSLX.com>, 29-10-2006
+# Dirk von Suchodoletz <dvs@OpenSLX.com>, 07-11-2006
#
# (c) 2003 - 2006 - RZ Universitaet Freiburg
# (c) 2006 - OpenSLX.org Project
@@ -368,7 +368,11 @@ fi
# not rather precise ...
if strinfile "SCSI" /tmp/hwsetup.info ; then
strinfile "CDROM" /tmp/hwsetup.info && { modprobe ${MODPRV} sr_mod;
- modprobe ${MODPRV} sg; }
+ modprobe ${MODPRV} sg;
+ # just for compatibility to hwsetup (which generates links to scd*)
+ test -b /dev/sr0 && { for i in /dev/sr* ; do
+ ln -s $i /dev/scd${i#/dev/sr} ; done; }
+ }
strinfile "HD" /tmp/hwsetup.info && modprobe ${MODPRV} sd_mod
# check if a (scsi) scanner was detected
strinfile "SCANNER" /tmp/hwsetup.info && \