- 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
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