mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-23 21:59:53 +07:00
storage: try something new
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
38c2f24a87
commit
31293a6fc8
@ -178,7 +178,11 @@ function getmapSelection() {
|
||||
REMAP="$(readConfigKey "arc.remap" "${USER_CONFIG_FILE}")"
|
||||
# Write Map to config and show Map to User
|
||||
if [ "${REMAP}" = "acports" ]; then
|
||||
writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}"
|
||||
if [ ${SATAPORTMAP} -eq 1 ] && [ ! "${MACHINE}" = "NATIVE" ]; then
|
||||
writeConfigKey "cmdline.SataPortMap" "0" "${USER_CONFIG_FILE}"
|
||||
else
|
||||
writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}"
|
||||
fi
|
||||
writeConfigKey "cmdline.DiskIdxMap" "${DISKIDXMAP}" "${USER_CONFIG_FILE}"
|
||||
deleteConfigKey "cmdline.sata_remap" "${USER_CONFIG_FILE}"
|
||||
elif [ "${REMAP}" = "maxports" ]; then
|
||||
@ -218,7 +222,11 @@ function autogetmapSelection() {
|
||||
REMAP="$(readConfigKey "arc.remap" "${USER_CONFIG_FILE}")"
|
||||
# Write Map to config and show Map to User
|
||||
if [ "${REMAP}" = "acports" ]; then
|
||||
writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}"
|
||||
if [ ${SATAPORTMAP} -eq 1 ] && [ ! "${MACHINE}" = "NATIVE" ]; then
|
||||
writeConfigKey "cmdline.SataPortMap" "0" "${USER_CONFIG_FILE}"
|
||||
else
|
||||
writeConfigKey "cmdline.SataPortMap" "${SATAPORTMAP}" "${USER_CONFIG_FILE}"
|
||||
fi
|
||||
writeConfigKey "cmdline.DiskIdxMap" "${DISKIDXMAP}" "${USER_CONFIG_FILE}"
|
||||
deleteConfigKey "cmdline.sata_remap" "${USER_CONFIG_FILE}"
|
||||
elif [ "${REMAP}" = "maxports" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user