diff --git a/disks/install.sh b/disks/install.sh index fb7faf3..1cd6515 100755 --- a/disks/install.sh +++ b/disks/install.sh @@ -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