#!/bin/bash
#                      /usr/local/bin/drobomount
# http://crystalfaeries.net/posix/bin/drobomount
# celeste:crystalfaery 2015-05-19 04:39:20+00:00
# Mount all of our Drobo shares

let exitval=0	# assume success

# mount the user's private partition for private files
#mount -t cifs //drobofs/kahealani /home/kahealani/documents --verbose -o user=kahealani,uid=1000,forceuid,gid=1000,forcegid,file_mode=0660,dir_mode=0770,domain=KAHEALANI,rw,posixpaths,noserverino |& tee -a /var/log/cifs.log
#let result=$?
#if [[ $result -ne 0 ]]
#then
#	let   exitval=$result
#fi

# mount the user's private partition for private files backup
mount -t cifs //drobo5n/kahealani /home/kahealani/drobo --verbose -o user=kahealani,uid=1000,forceuid,gid=1000,forcegid,file_mode=0660,dir_mode=0770,domain=KAHEALANI,rw,posixpaths,noserverino |& tee -a /var/log/cifs.log
let result=$?
if [[ $result -ne 0 ]]
then
	let   exitval=$result
fi

# mount the Public drobo partition for backups of public files
#mount -t cifs //drobofs/Public /home/public --verbose -o user=kahealani,uid=1000,forceuid,gid=1000,forcegid,file_mode=0664,dir_mode=0775,domain=KAHEALANI,rw,posixpaths,noserverino |& tee -a /var/log/cifs.log
#let result=$?
#if [[ $result -ne 0 ]]
#then
#	let   exitval=$result
#fi

# mount the Public drobo partition for backups of public files backup
mount -t cifs //drobo5n/Public /home/drobo --verbose -o user=kahealani,uid=1000,forceuid,gid=1000,forcegid,file_mode=0664,dir_mode=0775,domain=KAHEALANI,rw,posixpaths,noserverino |& tee -a /var/log/cifs.log
let result=$?
if [[ $result -ne 0 ]]
then
	let   exitval=$result
fi

exit $exitval

# username=username,password=password,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 //192.168.1.120/storage /mnt/storage

# //192.168.1.120/storage /mnt/storage        cifs    credentials=/root/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0


syntax highlighted by Code2HTML, v. 0.9.1