diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index dadcf70c..a625b855 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -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 diff --git a/files/initrd/opt/arc/include/storage.sh b/files/initrd/opt/arc/include/storage.sh index addd0d0f..c43a27e8 100755 --- a/files/initrd/opt/arc/include/storage.sh +++ b/files/initrd/opt/arc/include/storage.sh @@ -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."