home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / rescue / etc / init.d / boot.udev_retry < prev    next >
Text File  |  2006-11-29  |  705b  |  43 lines

  1. #!/bin/sh
  2. #
  3. ### BEGIN INIT INFO
  4. # Provides:          boot.udev_retry
  5. # Required-Start:    boot.rootfsck
  6. # Should-Start:      $local_fs
  7. # Default-Start:     B
  8. # Default-Stop:
  9. # Description:       Retry to configure failed devices after localfs.
  10. ### END INIT INFO
  11.  
  12. . /etc/rc.status
  13.  
  14. case "$1" in
  15.     start)
  16.     if test -d /dev/.udev/failed; then
  17.         echo -n "Retry device configuration"
  18.         udevtrigger --retry-failed
  19.         rc_status $status -r -v
  20.     fi
  21.     ;;
  22.     stop)
  23.     rc_status -v
  24.     ;;
  25.     restart)
  26.     rc_status -v
  27.     ;;
  28.     status)
  29.     rc_status -v
  30.     ;;
  31.     reload)
  32.     rc_status -v
  33.     ;;
  34.     force-reload)
  35.     rc_status -v
  36.     ;;
  37.     *)
  38.     echo "Usage: $0 {start|stop|restart|status|reload|force-reload}"
  39.     exit 1
  40.     ;;
  41. esac
  42. rc_exit
  43.