|
|
@ -108,7 +108,7 @@ for DEVICE in $(fdisk -l | grep '^Disk /' | grep -v '/dev/ram' | cut -d\ -f2 |
|
|
|
|
|
|
|
|
|
|
|
|
printf "%s" "│"
|
|
|
|
printf "%s" "│"
|
|
|
|
for (( LCV = 0; LCV < ${#PARTITIONS[@]}; LCV++ )); do
|
|
|
|
for (( LCV = 0; LCV < ${#PARTITIONS[@]}; LCV++ )); do
|
|
|
|
OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g')
|
|
|
|
OUTPUT=$(blkid -o export "${PARTITIONS[${LCV}]}" | grep '^\(TYPE=\)' | cut -d= -f2 | sed 's:linux_raid_member:raid:g;s:zfs_member:zfs:g')
|
|
|
|
PADL=$(( ( ${PCOLS[${LCV}]} - ${#OUTPUT} ) / 2 ))
|
|
|
|
PADL=$(( ( ${PCOLS[${LCV}]} - ${#OUTPUT} ) / 2 ))
|
|
|
|
PADR=$(( ${PCOLS[${LCV}]} - ${#OUTPUT} - ${PADL} ))
|
|
|
|
PADR=$(( ${PCOLS[${LCV}]} - ${#OUTPUT} - ${PADL} ))
|
|
|
|
printf '%*s%s%*s' ${PADL} "" "${OUTPUT}" ${PADR} ""
|
|
|
|
printf '%*s%s%*s' ${PADL} "" "${OUTPUT}" ${PADR} ""
|
|
|
|