#!/bin/bash
# /usr/local/bin/droboumount
# http://crystalfaeries.net/posix/bin/droboumount
# celeste:crystalfaery 2015-05-19 04:36:39+00:00
# UnMount all of our Drobo shares
let exitval=0 # assume success
# umount the user's private partition for private files backup
#fusermount -u /home/kahealani/documents- || sudo umount /home/kahealani/documents-
#let result=$?
#if [[ $result -ne 0 ]]
#then
# let exitval=$result
#fi
# umount the user's private partition for private files
fusermount -u /home/kahealani/drobo || sudo umount /home/kahealani/drobo
let result=$?
if [[ $result -ne 0 ]]
then
let exitval=$result
fi
# umount the Public drobo partition for backups of public files backup
#fusermount -u /home/public- || sudo umount /home/public-
#let result=$?
#if [[ $result -ne 0 ]]
#then
# let exitval=$result
#fi
# umount the Public drobo partition for backups of public files
fusermount -u /home/drobo || sudo umount /home/drobo
let result=$?
if [[ $result -ne 0 ]]
then
let exitval=$result
fi
exit $exitval
syntax highlighted by Code2HTML, v. 0.9.1