storage: fix

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium 2023-12-03 16:15:28 +01:00
parent 7452d7c702
commit 1f25ea58b6

View File

@ -131,12 +131,12 @@ function getmap() {
SATAPORTMAP=$(awk '{print $1}' "${TMP_PATH}/drivescon") SATAPORTMAP=$(awk '{print $1}' "${TMP_PATH}/drivescon")
SATAREMAP=$(awk '{print $1}' "${TMP_PATH}/remap" | sed 's/.$//') SATAREMAP=$(awk '{print $1}' "${TMP_PATH}/remap" | sed 's/.$//')
# Show recommended Option to user # Show recommended Option to user
if [ ! -n "${SATAREMAP}" ]; then if [ -n "${SATAREMAP}" ] && [[ ${SASCONTROLLER} -gt 0 || ${SCSICONTROLLER} -gt 0 ]] && [ "${MACHINE}" = "NATIVE" ]; then
REMAP1="*"
elif [ -n "${SATAREMAP}" ] && [[ ${SASCONTROLLER} -gt 0 || ${SCSICONTROLLER} -gt 0 ]]; then
REMAP2="*" REMAP2="*"
elif [ -n "${SATAREMAP}" ] && [[ ${SASCONTROLLER} -eq 0 && ${SCSICONTROLLER} -eq 0 ]]; then elif [ -n "${SATAREMAP}" ] && [[ ${SASCONTROLLER} -eq 0 && ${SCSICONTROLLER} -eq 0 ]]; then
REMAP3="*" REMAP3="*"
else
REMAP1="*"
fi fi
# Ask for Portmap # Ask for Portmap
dialog --backtitle "$(backtitle)" --title "Arc Disks" \ dialog --backtitle "$(backtitle)" --title "Arc Disks" \