Quick Script Question! (hopefully

Joined
May 28, 2015
Messages
1
Reaction score
0
Points
1
I have found a script and need to add a loop. So if the volume doesnt mount it waits an hour and then tries again.

All help greatly appreciated.

#/bin/bash

LOCALMOUNTPOINT="/Volumes/d$"


if mount | grep "on $LOCALMOUNTPOINT" > /dev/null; then
echo "mounted"
else
echo "not mounted"
mount -a
sleep 1h
fi
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top