~vcs-imports/ipfire/ipfire-2.x

« back to all changes in this revision

Viewing changes to src/install+setup/install/probescsi.sh

  • Committer: ipfire
  • Date: 2006-02-15 21:15:54 UTC
  • Revision ID: git-v1:cd1a2927226c734d96478e12bb768256fb64a06a


git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
OLDDIR=`pwd`
 
3
cd /lib/modules/*/kernel/drivers/scsi
 
4
/bin/modprobe scsi_mod.o.gz > /dev/null 2>&1
 
5
/bin/modprobe sd_mod.o.gz > /dev/null 2>&1
 
6
/bin/modprobe sr_mod.o.gz > /dev/null 2>&1
 
7
/bin/modprobe sg.o.gz > /dev/null 2>&1
 
8
/bin/modprobe libata.o.gz > /dev/null 2>&1
 
9
echo "Trying cpqarray"; 
 
10
if /bin/modprobe cpqarray > /dev/null 2>&1; then
 
11
        echo "cpqarray.o.gz" > /scsidriver;
 
12
        exit 0;
 
13
fi
 
14
echo "Trying cciss";
 
15
if /bin/modprobe cciss > /dev/null 2>&1; then
 
16
        echo "cciss.o.gz" > /scsidriver;
 
17
        exit 0;
 
18
fi
 
19
echo "Trying DAC960";
 
20
if /bin/modprobe DAC960 > /dev/null 2>&1; then
 
21
        echo "DAC960.o.gz" > /scsidriver;
 
22
        exit 0;
 
23
fi
 
24
/bin/modprobe ataraid.o.gz > /dev/null 2>&1
 
25
echo "Trying medley";
 
26
if /bin/modprobe medley > /dev/null 2>&1; then
 
27
        echo "medley.o.gz" > /scsidriver;
 
28
        exit 0;
 
29
fi
 
30
echo "Trying hptraid";
 
31
if /bin/modprobe hptraid > /dev/null 2>&1; then
 
32
        echo "hptraid.o.gz" > /scsidriver;
 
33
        exit 0;
 
34
fi
 
35
echo "Trying pdcraid";
 
36
if /bin/modprobe pdcraid > /dev/null 2>&1; then
 
37
        echo "pdcraid.o.gz" > /scsidriver;
 
38
        exit 0;
 
39
fi
 
40
echo "Trying silraid";
 
41
if /bin/modprobe silraid > /dev/null 2>&1; then
 
42
        echo "silraid.o.gz" > /scsidriver;
 
43
        exit 0;
 
44
fi
 
45
for i in * message/fusion/mptscsih.o.gz ; 
 
46
do 
 
47
# Skip the generic scsi modules and ancillary support modules
 
48
# Added eata_dma to skip list because it crashes some machines. Probe last.
 
49
if [ $i != "scsi_mod.o.gz" -a $i != "sd_mod.o.gz" -a $i != "sg.o.gz" -a $i != "sr_mod.o.gz" -a $i != "53c700.o.gz" -a $i != "NCR53C9x.o.gz" -a $i != "eata_dma.o.gz" -a $i != "libata.o.gz" ]; then
 
50
        DRIVER=`echo $i | sed 's/.o.gz//'`
 
51
        echo "Trying $DRIVER"; 
 
52
        if /bin/modprobe $DRIVER > /dev/null 2>&1; then
 
53
                echo $i > /scsidriver;
 
54
                /bin/cat /proc/scsi/scsi;
 
55
                exit 0;
 
56
        fi;
 
57
fi;
 
58
done
 
59
echo "Trying eata_dma";
 
60
if /bin/modprobe eata_dma > /dev/null 2>&1; then
 
61
        echo "eata_dma.o.gz" > /scsidriver;
 
62
        exit 0;
 
63
fi
 
64
cd $OLDDIR