From 2c98421275665e2f03d465acc5c99c2c028a82f6 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 29 May 2022 17:07:42 -0500 Subject: [PATCH] Update pibackup.sh --- pibackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pibackup.sh b/pibackup.sh index 40e829e..3929c9c 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -11,8 +11,8 @@ Password="P1backup" logfile=/opt/idssys/pibackup/logfile -if grep '/dev/nvme0n1' /etc/mtab > /dev/null 2>&1; then dtype=/dev/nvme0n1 -elif grep '/dev/mmcblk0' /etc/mtab > /dev/null 2>&1; then dtype=/dev/mmcblk0 +if [ -d /dev/nvme0n1 ]; then dtype=/dev/nvme0n1 +elif [ -d /dev/mmcblk0 ]; then dtype=/dev/mmcblk0 fi echo "HERE: ${dtype}"