Update pibackup.sh
This commit is contained in:
@@ -28,13 +28,13 @@ if [ "$1" != "update" ]; then
|
|||||||
until [ $c -gt 179 ]; do
|
until [ $c -gt 179 ]; do
|
||||||
if [ -f ${MountPoint}/mounted ]; then
|
if [ -f ${MountPoint}/mounted ]; then
|
||||||
echo "$(date) - Backup Drive mounted"
|
echo "$(date) - Backup Drive mounted"
|
||||||
c=100
|
c=10000
|
||||||
else
|
else
|
||||||
((c++))
|
((c++))
|
||||||
sleep 1s
|
sleep 1s
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ $c != 100 ]; then
|
if [ $c != 10000 ]; then
|
||||||
echo "$(date) - Backup Drive COULD NOT be mounted... exiting"
|
echo "$(date) - Backup Drive COULD NOT be mounted... exiting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user