mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
Fix hdd usage calculation (#1633)
This commit is contained in:
parent
dc2bc2ce6e
commit
cdc0829c75
@ -227,7 +227,7 @@ if [ "$1" = "status" ]; then
|
||||
# STATUS INFO WHEN MOUNTED
|
||||
|
||||
# output data drive
|
||||
hddDataPartition=$(df | grep "/mnt/hdd" | cut -d " " -f 1 | cut -d "/" -f 3)
|
||||
hddDataPartition=$(df | grep "/mnt/hdd$" | cut -d " " -f 1 | cut -d "/" -f 3)
|
||||
hdd=$(echo $hddDataPartition | sed 's/[0-9]*//g')
|
||||
hddFormat=$(lsblk -o FSTYPE,NAME,TYPE | grep part | grep "${hddDataPartition}" | cut -d " " -f 1)
|
||||
if [ "${hddFormat}" = "ext4" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user