home *** CD-ROM | disk | FTP | other *** search
/ chilidog.highland.cc.ks.us / chilidog.highland.cc.ks.us.zip / chilidog.highland.cc.ks.us / backup / bradford.20120521.etc.tar.gz / bradford.20120521.etc.tar / etc / init.d / boot.udev_retry < prev    next >
Text File  |  2006-11-25  |  788b  |  46 lines

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