Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ### BEGIN INIT INFO
- # Provides: usbhdd
- # Required-Start: $local_fs
- # Required-Stop:
- # Should-Start:
- # Should-stop:
- # Default-Start: S
- # Default-Stop:
- # X-Interactive: true
- # Short-Description: This script will wait a second and mounts the default USBHDD afterwards.
- ### END INIT INFO
- #
- # This script will mount after a second the default USB HDD if the entry exists in /etc/fstab
- # Version 1 by Crogge ([email protected])
- #
- . /lib/lsb/init-functions
- case "$1" in
- start)
- echo "USBHDD script started, searching default device..."
- if grep UUID=994a2324-d844-458d-b971-0342021548d1 /etc/fstab
- then
- sleep 1
- echo "Trying to mount the default USB HDD..."
- /bin/mount /media/usbhdd
- fi
- exit 0
- ;;
- stop)
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment