#!/bin/bash
# /usr/local/bin/umountmuse
# http://crystalfaeries.net/posix/bin/umountmuse
# celeste:crystalfaery 2014-06-06 17:34:20+00:00
# UnMount all of our mounts from host muse
let exitval=0 # assume success
# umount the rsnapshot partition (requires root access)
sudo umount /var/cache/rsnapshot
let result=$?
if [[ $result -ne 0 ]]
then
let exitval=$result
fi
# umount the audio RAID
fusermount -u /home/audio || sudo umount /home/audio
let result=$?
if [[ $result -ne 0 ]]
then
let exitval=$result
fi
# umount the video RAID
fusermount -u /home/video || sudo umount /home/video
let result=$?
if [[ $result -ne 0 ]]
then
let exitval=$result
fi
exit $exitval
syntax highlighted by Code2HTML, v. 0.9.1