From fafa66738e19457d98488961e50c7ae07025e64d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 5 Nov 2022 20:03:44 -0500 Subject: [PATCH] Update pibackup.sh --- pibackup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pibackup.sh b/pibackup.sh index 7dcd74d..58d4c61 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -23,7 +23,8 @@ if [ "$1" != "update" ]; then echo "$(date) - Checking for mounted Backup Drive..." if [ ! -f ${MountPoint}/mounted ]; then 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} + mount -a c=0 until [ $c -gt 179 ]; do if [ -f ${MountPoint}/mounted ]; then