home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / initramfs-tools / scripts / casper-premount / udev
Encoding:
Text File  |  2006-08-23  |  1.1 KB  |  43 lines

  1. #!/bin/sh -e
  2. # initramfs local-top script for udev
  3.  
  4. PREREQ=""
  5.  
  6. # Output pre-requisites
  7. prereqs()
  8. {
  9.     echo "$PREREQ"
  10. }
  11.  
  12. case "$1" in
  13.     prereqs)
  14.     prereqs
  15.     exit 0
  16.     ;;
  17. esac
  18.  
  19.  
  20. # Each call to udevplug can take up to three minutes
  21. if [ -x /sbin/usplash_write ]; then
  22.     /sbin/usplash_write "TIMEOUT 540"
  23.     trap "/sbin/usplash_write 'TIMEOUT 15'" 0
  24. fi
  25.  
  26. # Load drivers for storage controllers found on the PCI bus; these
  27. # show up the same for both IDE and SCSI so there's no point
  28. # differentiating between the two.  Do it in serial to try and
  29. # provide some predictability for which wins each time.
  30. /sbin/udevtrigger -s -Bpci -Iclass=0x01*
  31.  
  32. # We also need to load drivers for bridges (0x06), docking stations
  33. # (0x0a), input devices (0x09), serial devices (0x0c) and "intelligent"
  34. # devices (0x0e).  This is both to support filesystems on the end and
  35. # just in case there's a keyboard on the end and things go wrong.
  36. /sbin/udevtrigger -Bpci -Iclass=0x0[69ace]*
  37.  
  38. # If we're booting from IDE, it might not be a PCI controller,
  39. # but might be an old fashioned ISA controller; in which case
  40. # we need to load ide-generic.
  41. /sbin/modprobe -Qb ide-generic
  42. /sbin/udevsettle
  43.