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

  1. #!/bin/sh -e
  2. # initramfs premount 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. # It's all over netlink now
  21. echo "" > /proc/sys/kernel/hotplug
  22.     
  23. # Start the udev daemon to process events
  24. /sbin/udevd --daemon
  25.  
  26. # Each call to udevplug can take up to three minutes
  27. if [ -x /sbin/usplash_write ]; then
  28.     /sbin/usplash_write "TIMEOUT 180"
  29.     trap "/sbin/usplash_write 'TIMEOUT 15'" 0
  30. fi
  31.  
  32. # We need to get all the basic /dev devices in place, and deal with
  33. # the elmos of the world who've compiled various bus drivers into the
  34. # kernel already.  On normal systems these buses won't even exist at this
  35. # point.
  36. /sbin/udevtrigger -Bide -Bscsi -Bi2o -Busb -Bieee1394 \
  37.     -Cscsi_device -Cusb_host -Cusb_device -Cmem -Cmisc -Ctty -Cvc -b
  38.