From 5bd5e6d805f602d19ae5fb3df59e8d02ebcd8dde Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 2 Mar 2024 21:12:22 +0100 Subject: [PATCH] arc: add warning for DT and SAS/SCSI Controller Signed-off-by: AuxXxilium --- files/initrd/opt/arc/arc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/initrd/opt/arc/arc.sh b/files/initrd/opt/arc/arc.sh index bcd439a9..a3ec5697 100755 --- a/files/initrd/opt/arc/arc.sh +++ b/files/initrd/opt/arc/arc.sh @@ -179,6 +179,10 @@ function arcMenu() { if ! grep -q "^flags.*aes.*" /proc/cpuinfo; then WARNON=4 fi + # Check for DT and SAS/SCSI + if [ "${DT}" = "true" ] && [[ ${SASCONTROLLER} -gt 0 || ${SCSICONTROLLER} -gt 0 ]]; then + WARNON=2 + fi PRODUCTVER="" writeConfigKey "model" "${MODEL}" "${USER_CONFIG_FILE}" writeConfigKey "productver" "" "${USER_CONFIG_FILE}" @@ -370,6 +374,10 @@ function arcsettings() { dialog --backtitle "$(backtitle)" --title "Arc Warning" \ --msgbox "WARN: Your Controller has more then 8 Disks connected. Max Disks per Controller: 8" 0 0 fi + if [ ${WARNON} -eq 2 ]; then + dialog --backtitle "$(backtitle)" --title "Arc Warning" \ + --msgbox "WARN: You use a HBA Controller and selected a HBA Model.\nThis is still an experimental Feature." 0 0 + fi if [ ${WARNON} -eq 3 ]; then dialog --backtitle "$(backtitle)" --title "Arc Warning" \ --msgbox "WARN: You have more then 8 Ethernet Ports. There are only 8 supported by DSM." 0 0