Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- checkMount() {
- echo `ls /mnt/ManageTV/ | wc -l`
- }
- if [[ $(checkMount) -eq 0 ]]; then
- echo "Mounting Magma shared drives"
- `mount -a 2> /var/log/warnings`
- if [[ $(checkMount) -eq 0 ]]; then
- echo "Drive not mounted, check /var/log/warnings"
- else
- echo "Drives Mounted"
- fi
- else
- echo "Already Mounted"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement