From 143ca700a413194e1052bc450087bf5c6f3d3f4c Mon Sep 17 00:00:00 2001 From: Christian Date: Tue, 5 Mar 2024 14:33:36 +0100 Subject: [PATCH] storage: fix --- files/initrd/opt/arc/include/storage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/initrd/opt/arc/include/storage.sh b/files/initrd/opt/arc/include/storage.sh index 320a4694..2aea41ff 100755 --- a/files/initrd/opt/arc/include/storage.sh +++ b/files/initrd/opt/arc/include/storage.sh @@ -2,7 +2,7 @@ function getmap() { # Sata Disks SATADRIVES=0 - if [ $(lspci -d ::107 | wc -l) -gt 0 ]; then + if [ $(lspci -d ::106 | wc -l) -gt 0 ]; then # Clean old files [ -f "${TMP_PATH}/drivesmax" ] && rm -f "${TMP_PATH}/drivesmax" touch "${TMP_PATH}/drivesmax" @@ -107,7 +107,7 @@ 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}" - if [ ! "{DT}" = "true" ] && [ $(lspci -d ::107 | wc -l) -gt 0 ]; then + if [ ! "{DT}" = "true" ] && [ $(lspci -d ::106 | wc -l) -gt 0 ]; then # Check for Sata Boot LASTDRIVE=0 while read -r LINE; do