/[fai]/people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source
ViewVC logotype

Diff of /people/lazyboy/fai-2.9-multidistribution/examples/simple/class/20-hwdetect.source

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3263 by lazyboy-guest, Sun Jan 22 22:45:26 2006 UTC revision 3264 by lazyboy-guest, Mon Jan 23 20:51:49 2006 UTC
# Line 32  for mod in $kernelmodules; do Line 32  for mod in $kernelmodules; do
32      modprobe -a $mod 1>/dev/null 2>&1      modprobe -a $mod 1>/dev/null 2>&1
33  done  done
34    
35  #### SMITH  
36  case $DISTRIBUTION in  if [ -e /etc/init.d/discover ]; then
37      debian)      # let discover do most of the job
38          # let discover do most of the job      /etc/init.d/discover start
39          /etc/init.d/discover start ;;  fi
40      "")  
41          # let discover do most of the job  if [ `which kudzu` ];then
42          /etc/init.d/discover start ;;      kudzu -q
43      centos3)  fi
         kudzu -q ;;  
     *)  
         # what can I do ?  
 esac  
44    
45  # now we can mount the usb file system  # now we can mount the usb file system
46  mount -t usbfs  usbfs /proc/bus/usb  mount -t usbfs  usbfs /proc/bus/usb
# Line 55  echo 6 > /proc/sys/kernel/printk Line 51  echo 6 > /proc/sys/kernel/printk
51    
52  # try to detect graphics card  # try to detect graphics card
53  # the variable videodrv may be used to generate the XF86config file  # the variable videodrv may be used to generate the XF86config file
54  #### SMITH  
55  case $DISTRIBUTION in  if [ `which discover` ]; then
     debian)  
56          if discover --version | grep "discover \(version \)*1\." ; then          if discover --version | grep "discover \(version \)*1\." ; then
57              videodrv=$(discover --xdriver video 2> /dev/null)              videodrv=$(discover --xdriver video 2> /dev/null)
58          else          else
59              videodrv=$(discover --data-path=xfree86/server/device/driver display)              videodrv=$(discover --data-path=xfree86/server/device/driver display)
60          fi          fi
61    
62          [ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var          [ -n "$videodrv" ] && echo "videodrv=$videodrv" >> $LOGDIR/additional.var
63          echo "Video card detected: $videodrv" ;;          echo "Video card detected: $videodrv" ;;
64  esac  fi
65    
66  set_disk_info  # calculate number of available disks  set_disk_info  # calculate number of available disks
67  save_dmesg     # save new boot messages (from loading modules)  save_dmesg     # save new boot messages (from loading modules)

Legend:
Removed from v.3263  
changed lines
  Added in v.3264

  ViewVC Help
Powered by ViewVC 1.1.5