Bugfixes.

This commit is contained in:
Raphaël Numbus
2026-05-25 22:06:50 +02:00
parent 55c51c7205
commit d4af5bbdb1
+5 -5
View File
@@ -156,7 +156,7 @@ detect_graphics() {
integrated="false"
fi
if [[ "\${brand}" == "Intel" ]]; then
if echo "\${gpu}" | grep -Ei "HD Graphics|Xe"; then
if echo "\${line}" | grep -Ei "HD Graphics|Xe"; then
integrated="true"
else
integrated="false"
@@ -285,11 +285,11 @@ detect_tpm() {
detect_disks() {
local disks="[]"
while read -r disk; do
while read -r disk_name; do
# Disk Type Mapping
local disk_type="unknown"
local disk_transport=\$(lsblk -d -n -o TRAN "\$dev_path" || echo "unknown")
local rotational=\$(lsblk -d -n -o ROTA "\$dev_path" || echo "1")
local disk_transport=\$(lsblk -d -n -o TRAN "/dev/\$disk_name" || echo "unknown")
local rotational=\$(lsblk -d -n -o ROTA "/dev/\$disk_name" || echo "1")
if [[ "\$disk_name" == nvme* ]]; then
disk_type="NVMe"
@@ -300,7 +300,7 @@ detect_disks() {
fi
# Size in GB
local disk_size=\$(lsblk -d -n -o SIZE "\$dev_path" || echo "unknown")
local disk_size=\$(lsblk -d -n -o SIZE "/dev/\$disk_name" || echo "unknown")
# ID via by-id
local disk_id="unknown"