Update pibackup.sh
This commit is contained in:
@@ -24,13 +24,14 @@ if [ "$1" != "update" ]; then
|
|||||||
if [ ! -f ${MountPoint}/mounted ]; then
|
if [ ! -f ${MountPoint}/mounted ]; then
|
||||||
echo "$(date) - Not found, mounting drive now..."
|
echo "$(date) - Not found, mounting drive now..."
|
||||||
#mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
|
#mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password}
|
||||||
|
c=0
|
||||||
until [ $c -gt 59 ]; do
|
until [ $c -gt 59 ]; do
|
||||||
if [ -f ${MountPoint}/mounted ]; then
|
if [ -f ${MountPoint}/mounted ]; then
|
||||||
echo "$(date) - Backup Drive mounted"
|
echo "$(date) - Backup Drive mounted"
|
||||||
c=100
|
c=100
|
||||||
else
|
else
|
||||||
c=`expr $c + 1`
|
echo "$(date) - Waiting..."
|
||||||
|
((c++))
|
||||||
sleep 1s
|
sleep 1s
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user