/[fai]/trunk/examples/simple/class/06hwdetect.source
ViewVC logotype

Contents of /trunk/examples/simple/class/06hwdetect.source

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1988 - (show annotations) (download)
Tue Jul 29 12:34:48 2003 UTC (9 years, 9 months ago) by lange
File size: 932 byte(s)
modprobe prints to stdout
1 #! /bin/sh
2
3 # load ide kernel modules
4 modprobe -a ide-probe-mod ide-disk ide-cd
5
6 # probe for scsi devices and set classes
7
8 for d in `discover --module scsi`; do
9 modprobe $d
10 case "$d" in
11 aic7xxx)
12 # define a class for adaptec special work to do
13 newclasses="$newclasses ADAPTEC" ;;
14 esac
15 done
16
17 modprobe -a sd_mod sr_mod
18 # are any SCSI devices attached?
19 if grep -q "^Attached devices: none" /proc/scsi/scsi; then
20 :
21 else
22 newclasses="SCSI $newclasses"
23 # we want also get the filename in front of each line. So do not use cat, use grep
24 [ "$verbose" ] && cat /proc/scsi/scsi
25 [ "$debug" ] && grep -H . /proc/scsi/*/*
26 fi
27
28 set_disk_info # calculate number of available disks
29 save_dmesg # save new boot messages (from loading modules)
30
31 # tro to detect graphics card
32 video=`discover --xdriver video`
33 case "$video" in
34 mga) newclasses="$newclasses MATROX"
35 esac
36 unset video

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5