disks: rework

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-19 21:00:25 +02:00
parent 3364944d77
commit cf93bc4194

View File

@ -331,6 +331,12 @@ function nondtModel() {
hasUSB=true
fi
done
# USB Port Mapping
if [ "${2}" = "internal" ]; then
hasUSB=true
elif [ "${2}" = "external" ]; then
hasUSB=false
fi
# Define 6 is the minimum number of USB disks
if [ "${hasUSB}" = "false" ]; then
USBMINIDX=$((${MAXDISKS} - 1))