disks: update 3

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2024-09-20 19:56:37 +02:00
parent 0c57a6456d
commit 50dd2852bd

View File

@ -339,7 +339,7 @@ function nondtModel() {
[ $((${USBMAXIDX} - ${USBMINIDX})) -lt 6 ] && USBMAXIDX=$((${USBMINIDX} + 6))
fi
if [ "${2}" = "external" ]; then
printf "usb external maxdisks=%d\n" "${MAXDISKS}"
MAXDISKS=$((${MAXDISKS} - ${USBMAXIDX}))
else
[ $((${USBMAXIDX} + 1)) -gt ${MAXDISKS} ] && MAXDISKS=$((${USBMAXIDX} + 1))
fi