Guest User

Untitled

a guest
Sep 14th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides: usbhdd
  4. # Required-Start: $local_fs
  5. # Required-Stop:
  6. # Should-Start:
  7. # Should-stop:
  8. # Default-Start: S
  9. # Default-Stop:
  10. # X-Interactive: true
  11. # Short-Description: This script will wait a second and mounts the default USBHDD afterwards.
  12. ### END INIT INFO
  13.  
  14. #
  15. # This script will mount after a second the default USB HDD if the entry exists in /etc/fstab
  16. # Version 1 by Crogge ([email protected])
  17. #
  18.  
  19. . /lib/lsb/init-functions
  20.  
  21. case "$1" in
  22. start)
  23. echo "USBHDD script started, searching default device..."
  24. if grep UUID=994a2324-d844-458d-b971-0342021548d1 /etc/fstab
  25. then
  26. sleep 1
  27. echo "Trying to mount the default USB HDD..."
  28. /bin/mount /media/usbhdd
  29. fi
  30. exit 0
  31. ;;
  32. stop)
  33. ;;
  34. esac
Advertisement
Add Comment
Please, Sign In to add comment