Advertisement
Guest User

FerretPi AutoMount v1

a guest
Jan 6th, 2015
1,670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #! /bin/sh
  2. # /etc/init.d/mounthdd
  3.  
  4. case "$1" in
  5. start)
  6. echo "Mounting HDD..."
  7. # run application you want to start
  8. sudo mount /dev/sda2 /home/pi/mount
  9. ;;
  10. stop)
  11. echo "Unmounting HDD..."
  12. # kill application you want to stop
  13. sudo umount /dev/sda2
  14. ;;
  15. *)
  16. echo "Usage: /etc/init.d/mounthdd {start|stop}"
  17. exit 1
  18. ;;
  19. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement