mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-25 19:21:57 +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)
|
hddFormat=$(lsblk -o FSTYPE,NAME,TYPE | grep part | grep "${hddDataPartition}" | cut -d " " -f 1)
|
||||||
if [ "${hddFormat}" = "ext4" ]; then
|
if [ "${hddFormat}" = "ext4" ]; then
|
||||||
hddDataPartitionExt4=$hddDataPartition
|
hddDataPartitionExt4=$hddDataPartition
|
||||||
subVolumeDir=""
|
|
||||||
fi
|
fi
|
||||||
if [ "${hddFormat}" = "btrfs" ]; then
|
hddRaspiData=$(sudo ls -l /mnt/hdd | grep -c raspiblitz.conf)
|
||||||
subVolumeDir="/WORKINGDIR"
|
|
||||||
fi
|
|
||||||
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} | grep -c raspiblitz.conf)
|
|
||||||
echo "hddRaspiData=${hddRaspiData}"
|
echo "hddRaspiData=${hddRaspiData}"
|
||||||
|
|
||||||
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)
|
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)
|
||||||
|
Reference in New Issue
Block a user