From c7a67f7dce61c9c1aa52bda7fe86c9386520b1b7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 7 Apr 2023 19:15:02 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 5b19cc7..a6d8317 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -31,12 +31,14 @@ RUN(){ systempartition=true elif [ "${ia}" = "shm" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 1024 ]; then systempartition=true - elif [ "${ia}" = "nvme0n1p1" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 4096 ]; then + elif [ "${ia}" = "nvme0n1p1" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 1024 ]; then systempartition=true - elif [ "${ia}" = "nvme0n1p15" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 1024 ]; then + elif [ "${ia}" = "nvme1n1" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 4096 ]; then systempartition=true elif [ "${ia}" = "mmcblk0p1" ] && [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 1024 ]; then systempartition=true + elif [ ${DRIVEINFO[$((${ii}+1))]//M/} -lt 1024 ]; then + systempartition=true else #echo "${ia};${ib};${ic}" DRIVE_INFO+=("${ia};${ib};${ic}")