From f1887e2fc85311a0973bc2ec4d54afb8ba526b6d Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Sat, 8 Jun 2024 20:49:48 +0200 Subject: [PATCH] sxtorage: rework Signed-off-by: AuxXxilium --- files/initrd/opt/arc/include/storage.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/initrd/opt/arc/include/storage.sh b/files/initrd/opt/arc/include/storage.sh index d0bad837..1a9fc861 100755 --- a/files/initrd/opt/arc/include/storage.sh +++ b/files/initrd/opt/arc/include/storage.sh @@ -144,7 +144,7 @@ function getmapSelection() { CUSTOM="$(readConfigKey "arc.custom" "${USER_CONFIG_FILE}")" if [ "${CUSTOM}" == "false" ]; then # Show recommended Option to user - if [ -n "${SATAREMAP}" ] && [ "${EXTERNALCONTROLLER}" == "true" ] && [ "${MACHINE}" == "NATIVE" ]]; then + if [ -n "${SATAREMAP}" ] && [ "${EXTERNALCONTROLLER}" == "true" ] && [ "${MACHINE}" == "NATIVE" ]; then REMAP2="*" elif [ -n "${SATAREMAP}" ] && [ "${EXTERNALCONTROLLER}" == "false" ]; then REMAP3="*" @@ -176,9 +176,9 @@ function getmapSelection() { fi else # Show recommended Option to user - if [[ -n "${SATAREMAP}" && "${EXTERNALCONTROLLER}" == "true" && "${MACHINE}" == "NATIVE" ]]; then + if [ -n "${SATAREMAP}" ] && [ "${EXTERNALCONTROLLER}" == "true" ] && [ "${MACHINE}" == "NATIVE" ]; then writeConfigKey "arc.remap" "maxports" "${USER_CONFIG_FILE}" - elif [[ -n "${SATAREMAP}" && "${EXTERNALCONTROLLER}" == "false" ]]; then + elif [ -n "${SATAREMAP}" ] && [ "${EXTERNALCONTROLLER}" == "false" ]; then writeConfigKey "arc.remap" "remap" "${USER_CONFIG_FILE}" else writeConfigKey "arc.remap" "acports" "${USER_CONFIG_FILE}"