/[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 2024 - (show annotations) (download)
Tue Aug 5 19:43:35 2003 UTC (9 years, 9 months ago) by lange
File size: 931 byte(s)
remove blank lines
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 for d in `discover --module scsi`; do
8 modprobe $d
9 case "$d" in
10 aic7xxx)
11 # define a class for adaptec special work to do
12 newclasses="$newclasses ADAPTEC" ;;
13 esac
14 done
15
16 modprobe -a sd_mod sr_mod
17 # are any SCSI devices attached?
18 if grep -q "^Attached devices: none" /proc/scsi/scsi; then
19 :
20 else
21 newclasses="SCSI $newclasses"
22 # we want also get the filename in front of each line. So do not use cat, use grep
23 [ "$verbose" ] && cat /proc/scsi/scsi
24 [ "$debug" ] && grep -H . /proc/scsi/*/*
25 fi
26
27 set_disk_info # calculate number of available disks
28 save_dmesg # save new boot messages (from loading modules)
29
30 # tro to detect graphics card
31 video=`discover --xdriver video`
32 case "$video" in
33 mga) newclasses="$newclasses MATROX"
34 esac
35 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