Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- #
- # Run-level Startup script for curlftpfs
- #
- # chkconfig: 345 91 19
- # description: Startup/Shutdown the curlftpfs
- FTP_HOST=MindYaBusiness
- FTP_MOUNT=/path/to/mindingBusiness
- FTP_USER=MindYaBusiness
- FTP_PASS=MindYaBusiness
- # Create the mounted to dir if doesn't exist
- if [ ! -d $FTP_MOUNT ]; then
- mkdir -p $FTP_MOUNT
- fi
- case "$1" in
- start)
- curlftpfs $FTP_HOST $FTP_MOUNT -o user=$FTP_USER:$FTP_PASS,allow_other
- ;;
- stop)
- fusermount -u $FTP_MOUNT
- ;;
- reload|restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "Usage: $0 start|stop|restart|reload"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement