arc: more fixes

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-03-05 21:38:54 +01:00
parent 38aa36424f
commit 44b563c0cf
2 changed files with 4 additions and 1 deletions

View File

@@ -408,7 +408,7 @@ function make() {
# USBMount Support
if [ "${USBMOUNT}" = "true" ]; then
DRIVES="$(readConfigKey "device.drives" "${USER_CONFIG_FILE}")"
writeConfigKey "synoinfo.maxdisks" "${HARDDRIVES}" "${USER_CONFIG_FILE}"
writeConfigKey "synoinfo.maxdisks" "${DRIVES}" "${USER_CONFIG_FILE}"
deleteConfigKey "synoinfo.usbportcfg" "${USER_CONFIG_FILE}"
deleteConfigKey "synoinfo.esataportcfg" "${USER_CONFIG_FILE}"
deleteConfigKey "synoinfo.internalportcfg" "${USER_CONFIG_FILE}"

View File

@@ -118,6 +118,9 @@ function getmap() {
[ ${NVMEDRIVES} -gt 0 ] && writeConfigKey "device.nvmedrives" "${NVMEDRIVES}" "${USER_CONFIG_FILE}"
writeConfigKey "device.drives" "${DRIVES}" "${USER_CONFIG_FILE}"
writeConfigKey "device.harddrives" "${HARDDRIVES}" "${USER_CONFIG_FILE}"
# Check for nonDT
MODEL="$(readConfigKey "model" "${USER_CONFIG_FILE}")"
DT="$(readModelKey "${MODEL}" "dt")"
if [ ! "{DT}" = "true" ] && [ $(lspci -d ::106 | wc -l) -gt 0 ]; then
# Check for Sata Boot
LASTDRIVE=0