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

  1. #!/bin/sh -e
  2. # initramfs nfs-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 360"
  23.     trap "/sbin/usplash_write 'TIMEOUT 15'" 0
  24. fi
  25.  
  26. # All we need to do is load drivers for any network card on the PCI
  27. # bus, and hopefully we'll have one that can be used to boot
  28. # afterwards; load them in PCI bus order to try and produce some kind
  29. # of sanity.
  30. /sbin/udevtrigger -s -Bpci -Iclass=0x02*
  31.  
  32. # Finally we need to load drivers for bridges (0x06),
  33. # docking stations (0x0a), input devices (0x09), serial devices (0x0c)
  34. # and "intelligent" devices (0x0e).  Just in case there's a keyboard
  35. # on the end and things go wrong.
  36. /sbin/udevtrigger -Bpci -Iclass=0x0[69ace]*
  37.