boot: reactivate sdcard in dsm

Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
AuxXxilium
2024-07-01 17:47:37 +02:00
parent 79391ac86c
commit 42d9d6be5f
2 changed files with 8 additions and 8 deletions

View File

@@ -290,7 +290,7 @@ function cmdlineMenu() {
while true; do
dialog --backtitle "$(backtitle)" --cancel-label "Exit" --menu "Choose an Option" 0 0 0 \
--file "${TMP_PATH}/menu" 2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && return 1
[ $? -ne 0 ] && break
case "$(cat ${TMP_PATH}/resp)" in
1)
MSG=""
@@ -687,7 +687,7 @@ function backupMenu() {
2 "Restore Encryption Key from DSM" \
3 "Backup Encryption Key to DSM" \
2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && return 1
[ $? -ne 0 ] && break
case "$(cat ${TMP_PATH}/resp)" in
1)
DSMROOTS="$(findDSMRoot)"
@@ -823,7 +823,7 @@ function updateMenu() {
6 "Update Patches" \
7 "Automated Update Mode" \
2>"${TMP_PATH}/resp"
[ $? -ne 0 ] && return 1
[ $? -ne 0 ] && break
case "$(cat ${TMP_PATH}/resp)" in
1)
dialog --backtitle "$(backtitle)" --title "Upgrade Loader" --aspect 18 \
@@ -1931,7 +1931,7 @@ function satadomMenu() {
# Decrypt Menu
function decryptMenu() {
if [ -f "${S_FILE_ENC}" ]; then
CONFIGSVERSION=$(cat "${MODEL_CONFIG_PATH}/VERSION")
CONFIGSVERSION="$(cat "${MODEL_CONFIG_PATH}/VERSION")"
cp -f "${S_FILE}" "${S_FILE}.bak"
dialog --backtitle "$(backtitle)" --colors --title "Arc Decrypt" \
--inputbox "Enter Decryption Key for ${CONFIGSVERSION}" 7 40 2>"${TMP_PATH}/resp"

View File

@@ -127,10 +127,10 @@ function bootDSM () {
CMDLINE["vender_format_version"]="2"
[ $(cat /proc/cpuinfo | grep Intel | wc -l) -gt 0 ] && CMDLINE["intel_pstate"]="disable"
#if [ -n "$(ls /dev/mmcblk* 2>/dev/null)" ] && [ "${BUS}" != "mmc" ] && [ "${EMMCBOOT}" != "true" ]; then
# [ "${CMDLINE['modprobe.blacklist']}" != "" ] && CMDLINE['modprobe.blacklist']+=","
# CMDLINE['modprobe.blacklist']+="sdhci,sdhci_pci,sdhci_acpi"
#fi
if [ -n "$(ls /dev/mmcblk* 2>/dev/null)" ] && [ "${BUS}" != "mmc" ] && [ "${EMMCBOOT}" != "true" ]; then
[ "${CMDLINE['modprobe.blacklist']}" != "" ] && CMDLINE['modprobe.blacklist']+=","
CMDLINE['modprobe.blacklist']+="sdhci,sdhci_pci,sdhci_acpi"
fi
if [ "${DT}" == "true" ] && ! echo "epyc7002 purley broadwellnkv2" | grep -wq "${PLATFORM}"; then
[ "${CMDLINE['modprobe.blacklist']}" != "" ] && CMDLINE['modprobe.blacklist']+=","
CMDLINE['modprobe.blacklist']+="mpt3sas"