@@ -408,7 +408,7 @@ function make() {
|
|||||||
# USBMount Support
|
# USBMount Support
|
||||||
if [ "${USBMOUNT}" = "true" ]; then
|
if [ "${USBMOUNT}" = "true" ]; then
|
||||||
DRIVES="$(readConfigKey "device.drives" "${USER_CONFIG_FILE}")"
|
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.usbportcfg" "${USER_CONFIG_FILE}"
|
||||||
deleteConfigKey "synoinfo.esataportcfg" "${USER_CONFIG_FILE}"
|
deleteConfigKey "synoinfo.esataportcfg" "${USER_CONFIG_FILE}"
|
||||||
deleteConfigKey "synoinfo.internalportcfg" "${USER_CONFIG_FILE}"
|
deleteConfigKey "synoinfo.internalportcfg" "${USER_CONFIG_FILE}"
|
||||||
|
|||||||
@@ -118,6 +118,9 @@ function getmap() {
|
|||||||
[ ${NVMEDRIVES} -gt 0 ] && writeConfigKey "device.nvmedrives" "${NVMEDRIVES}" "${USER_CONFIG_FILE}"
|
[ ${NVMEDRIVES} -gt 0 ] && writeConfigKey "device.nvmedrives" "${NVMEDRIVES}" "${USER_CONFIG_FILE}"
|
||||||
writeConfigKey "device.drives" "${DRIVES}" "${USER_CONFIG_FILE}"
|
writeConfigKey "device.drives" "${DRIVES}" "${USER_CONFIG_FILE}"
|
||||||
writeConfigKey "device.harddrives" "${HARDDRIVES}" "${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
|
if [ ! "{DT}" = "true" ] && [ $(lspci -d ::106 | wc -l) -gt 0 ]; then
|
||||||
# Check for Sata Boot
|
# Check for Sata Boot
|
||||||
LASTDRIVE=0
|
LASTDRIVE=0
|
||||||
|
|||||||
Reference in New Issue
Block a user