From 6edb0b578a9781c5c31bffaa06c0377080d41675 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Oct 2022 16:42:50 -0500 Subject: [PATCH] Update pibackup.sh --- pibackup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pibackup.sh b/pibackup.sh index 45c70a2..2b273b8 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -24,13 +24,14 @@ if [ "$1" != "update" ]; then if [ ! -f ${MountPoint}/mounted ]; then echo "$(date) - Not found, mounting drive now..." #mount.cifs ${ServerName} ${MountPoint} -o user=${UserName},password=${Password} - + c=0 until [ $c -gt 59 ]; do if [ -f ${MountPoint}/mounted ]; then echo "$(date) - Backup Drive mounted" c=100 else - c=`expr $c + 1` + echo "$(date) - Waiting..." + ((c++)) sleep 1s fi done