mirror of
https://github.com/AuxXxilium/arc-c.git
synced 2024-11-23 23:11:08 +07:00
storage: fix
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
7452d7c702
commit
1f25ea58b6
@ -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" \
|
||||||
|
Loading…
Reference in New Issue
Block a user