mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-14 22:59:19 +02:00
#650 hdd flexibility
This commit is contained in:
parent
00c554c42a
commit
fa7d6bec60
@ -68,8 +68,8 @@ else
|
||||
fi
|
||||
|
||||
# HDD usage
|
||||
hdd_used_space=$(df -h | grep "/dev/sda1" | sed -e's/ */ /g' | cut -d" " -f 3 2>/dev/null)
|
||||
hdd_used_ratio=$(df -h | grep "/dev/sda1" | sed -e's/ */ /g' | cut -d" " -f 5| tr -dc '0-9' 2>/dev/null)
|
||||
hdd_used_space=$(df -h | grep "/dev/sda" | sed -e's/ */ /g' | cut -d" " -f 3 2>/dev/null)
|
||||
hdd_used_ratio=$(df -h | grep "/dev/sda" | sed -e's/ */ /g' | cut -d" " -f 5| tr -dc '0-9' 2>/dev/null)
|
||||
hdd="${hdd_used_space} (${hdd_used_ratio}%)"
|
||||
|
||||
if [ ${hdd_used_ratio} -gt 90 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user