mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-09-14 07:51:17 +00:00
add exfat to disk types for TOTAL_DISK_RAW (#104)
This commit is contained in:
2
yabs.sh
2
yabs.sh
@@ -267,7 +267,7 @@ TOTAL_SWAP_RAW=$(free | grep Swap | awk '{ print $2 }')
|
|||||||
TOTAL_SWAP=$(format_size "$TOTAL_SWAP_RAW")
|
TOTAL_SWAP=$(format_size "$TOTAL_SWAP_RAW")
|
||||||
echo -e "Swap : $TOTAL_SWAP"
|
echo -e "Swap : $TOTAL_SWAP"
|
||||||
# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
|
# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
|
||||||
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }')
|
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t exfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }')
|
||||||
TOTAL_DISK=$(format_size "$TOTAL_DISK_RAW")
|
TOTAL_DISK=$(format_size "$TOTAL_DISK_RAW")
|
||||||
echo -e "Disk : $TOTAL_DISK"
|
echo -e "Disk : $TOTAL_DISK"
|
||||||
DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )
|
DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )
|
||||||
|
Reference in New Issue
Block a user