mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 07:16:43 +02:00
committed by
rootzoll
parent
204e736cbd
commit
b0f5bdff61
@@ -211,12 +211,8 @@ if [ "$1" = "status" ]; then
|
||||
hddFormat=$(lsblk -o FSTYPE,NAME,TYPE | grep part | grep "${hddDataPartition}" | cut -d " " -f 1)
|
||||
if [ "${hddFormat}" = "ext4" ]; then
|
||||
hddDataPartitionExt4=$hddDataPartition
|
||||
subVolumeDir=""
|
||||
fi
|
||||
if [ "${hddFormat}" = "btrfs" ]; then
|
||||
subVolumeDir="/WORKINGDIR"
|
||||
fi
|
||||
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} | grep -c raspiblitz.conf)
|
||||
hddRaspiData=$(sudo ls -l /mnt/hdd | grep -c raspiblitz.conf)
|
||||
echo "hddRaspiData=${hddRaspiData}"
|
||||
|
||||
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)
|
||||
|
Reference in New Issue
Block a user