added bay numbers

This commit is contained in:
2025-03-01 13:08:32 -05:00
parent ab30387714
commit 628111f477

View File

@ -57,6 +57,7 @@ declare -A DRIVE_MAPPINGS=(
pci-0000:0c:00.0-ata-4:6
pci-0000:0c:00.0-ata-1:4
pci-0000:0c:00.0-ata-2:5
pci-0000:0d:00.0-nvme-1:11
"
["large1"]=""
["medium1"]=""
@ -156,15 +157,15 @@ generate_medium2_layout() {
printf "┌──────────────────────────────────────────────────────────────┐\n"
printf "│ B650D4U3-2Q/BCM │\n"
printf "│ │\n"
printf "│ NVMe [0d:00.0] │\n"
printf "│ NVMe [0d:00.0] Bay 11 │\n"
printf "│ ┌────────┐ │\n"
printf "│ │ nvme0n1 │ │\n"
printf "│ │ %-6s │ │\n" "${drive_map[11]:-nvme0n1}"
printf "│ └────────┘ │\n"
printf "│ │\n"
printf "│ Front Hot-swap Bays [0c:00.0] │\n"
printf "│ ┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐┌────────┐ │\n"
# Map drives to bays dynamically
# Show slot numbers and drives
for bay in {1..10}; do
local drive="EMPTY"
for mapping in "${drive_map[@]}"; do
@ -173,7 +174,7 @@ generate_medium2_layout() {
break
fi
done
printf "│ │ %-6s │" "$drive"
printf "│ │%-2d:%-4s │" "$bay" "$drive"
done
printf " │\n"
printf "│ └────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘└────────┘ │\n"