Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/tcsh
- if ( -e ${HOME}/bric ) then
- sudo umount /mnt
- rm ${HOME}/bric
- echo "BRIC drive is unmounted"
- else
- sudo mount.cifs //neuro-fs.med.unc.edu/neurology/groups/BRIC /mnt -o rw,vers=2.1,credentials=${HOME}/.credentials,iocharset=utf8,nobrl,file_mode=0777,dir_mode=0777
- ln -s /mnt ${HOME}/bric
- echo "BRIC drive is mounted"
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement