Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !/usr/bin/env bash
- CMD=`basename $0`
- usage() {
- echo "Usage: ${CMD} on|off"
- }
- if [[ $# -eq 0 ]]; then
- usage
- exit 1
- fi
- case "$1" in
- on)
- sudo mount -t hfsplus -o force,rw /dev/sda2 /media/usbhdd
- ;;
- off)
- sudo umount /media/usbhdd
- ;;
- *)
- usage
- exit 1
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement