mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user