From cc9a05bb81cd64cc804b58c2c839e17363a9e1d4 Mon Sep 17 00:00:00 2001 From: Root Date: Thu, 9 Nov 2006 21:45:32 +0000 Subject: 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 --- initramfs/initrd-stuff/bin/hwautocfg | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'initramfs/initrd-stuff') 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 , 29-10-2006 +# Dirk von Suchodoletz , 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 && \ -- cgit v1.2.3-55-g7522