mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-06-28 04:06:54 +00:00
Update disk-passthrough.sh
This commit is contained in:
parent
a068bf1d9b
commit
54ee8ef7c7
@ -210,10 +210,10 @@ while read -r DISK; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if $SHOW_DISK; then
|
if $SHOW_DISK; then
|
||||||
|
[[ -n "$USED_BY" ]] && LABEL+=" [$USED_BY]"
|
||||||
[[ "$IS_RAID" == true ]] && LABEL+=" ⚠ RAID"
|
[[ "$IS_RAID" == true ]] && LABEL+=" ⚠ RAID"
|
||||||
[[ "$IS_LVM" == true ]] && LABEL+=" ⚠ LVM"
|
[[ "$IS_LVM" == true ]] && LABEL+=" ⚠ LVM"
|
||||||
[[ "$IS_ZFS" == true ]] && LABEL+=" ⚠ ZFS"
|
[[ "$IS_ZFS" == true ]] && LABEL+=" ⚠ ZFS"
|
||||||
[[ -n "$USED_BY" ]] && LABEL+=" [$USED_BY]"
|
|
||||||
|
|
||||||
DESCRIPTION=$(printf "%-30s %10s%s" "$MODEL" "$SIZE" "$LABEL")
|
DESCRIPTION=$(printf "%-30s %10s%s" "$MODEL" "$SIZE" "$LABEL")
|
||||||
FREE_DISKS+=("$DISK" "$DESCRIPTION" "OFF")
|
FREE_DISKS+=("$DISK" "$DESCRIPTION" "OFF")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user