arc/storage: fix logic

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2023-11-21 19:31:15 +01:00
parent c23c854fc7
commit 320757c2cf
2 changed files with 6 additions and 6 deletions

View File

@@ -1867,6 +1867,7 @@ function sysinfo() {
TEXT+="\Zb$(printf "%02d" ${P})\Zn "
fi
done
TEXT+="\n Ports with color \Z1\Zbred\Zn as DUMMY, color \Z2\Zbgreen\Zn has drive connected.\n"
TEXT+="\n"
done
fi
@@ -1912,7 +1913,6 @@ function sysinfo() {
NUMPORTS=$((${NUMPORTS} + ${PORTNUM}))
done
fi
TEXT+="\n Ports with color \Z1\Zbred\Zn as DUMMY, color \Z2\Zbgreen\Zn has drive connected.\n"
TEXT+="\n Drives total: \Zb${NUMPORTS}\Zn"
dialog --backtitle "$(backtitle)" --colors --title "Sysinfo" \
--msgbox "${TEXT}" 0 0

View File

@@ -109,11 +109,11 @@ function getmap() {
fi
# Disk Count for MaxDisks
DRIVES=$((${SATADRIVES} + ${SASDRIVES} + ${USBDRIVES} + ${MMCDRIVES} + ${NVMEDRIVES}))
[ "${SATADRIVES}" -gt 0 ] && writeConfigKey "device.satadrives" "${SATADRIVES}" "${USER_CONFIG_FILE}"
[ "${SASDRIVES}" -gt 0 ] && writeConfigKey "device.sasdrives" "${SASDRIVES}" "${USER_CONFIG_FILE}"
[ "${USBDRIVES}" -gt 0 ] && writeConfigKey "device.usbdrives" "${USBDRIVES}" "${USER_CONFIG_FILE}"
[ "${MMCDRIVES}" -gt 0 ] && writeConfigKey "device.mmcdrives" "${MMCDRIVES}" "${USER_CONFIG_FILE}"
[ "${NVMEDRIVES}" -gt 0 ] && writeConfigKey "device.nvmedrives" "${NVMEDRIVES}" "${USER_CONFIG_FILE}"
[ ${SATADRIVES} -gt 0 ] && writeConfigKey "device.satadrives" "${SATADRIVES}" "${USER_CONFIG_FILE}"
[ ${SASDRIVES} -gt 0 ] && writeConfigKey "device.sasdrives" "${SASDRIVES}" "${USER_CONFIG_FILE}"
[ ${USBDRIVES} -gt 0 ] && writeConfigKey "device.usbdrives" "${USBDRIVES}" "${USER_CONFIG_FILE}"
[ ${MMCDRIVES} -gt 0 ] && writeConfigKey "device.mmcdrives" "${MMCDRIVES}" "${USER_CONFIG_FILE}"
[ ${NVMEDRIVES} -gt 0 ] && writeConfigKey "device.nvmedrives" "${NVMEDRIVES}" "${USER_CONFIG_FILE}"
writeConfigKey "device.drives" "${DRIVES}" "${USER_CONFIG_FILE}"
if [ ${DRIVES} -gt 26 ]; then
TEXT+="\nYou have connected more then 26 Disks."