mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
Add 'hddRaspiData' when datadrive is mounted (#1615)
This commit is contained in:
parent
d252a655ab
commit
1e98eecb9c
@ -211,10 +211,17 @@ 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
|
||||
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)
|
||||
if [ "${hddFormat}" = "btrfs" ]; then
|
||||
subVolumeDir="/WORKINGDIR"
|
||||
fi
|
||||
hddRaspiData=$(sudo ls -l /mnt/hdd${subVolumeDir} | grep -c raspiblitz.conf)
|
||||
echo "hddRaspiData=${hddRaspiData}"
|
||||
|
||||
isSSD=$(sudo cat /sys/block/${hdd}/queue/rotational 2>/dev/null | grep -c 0)
|
||||
echo "isSSD=${isSSD}"
|
||||
|
||||
echo "datadisk='${hdd}'"
|
||||
echo "datapartition='${hddDataPartition}'"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user