From d912c57c998c369a639948822330e810a0385862 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 29 May 2022 17:05:54 -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 4408c97..61f8d57 100755 --- a/pibackup.sh +++ b/pibackup.sh @@ -11,8 +11,8 @@ Password="P1backup" logfile=/opt/idssys/pibackup/logfile -if [ -d /dev/nvme0n1 ]; then $dtype=/dev/nvme0n1 -elif [ -d /dev/mmcblk0 ]; then $dtype=/dev/mmcblk0 +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 fi echo "HERE: ${dtype}"