From 846c232bd02c77f98ced2a972bc14b7cdb25f8c3 Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 28 Mar 2025 20:14:19 +0100 Subject: [PATCH] fix: Check if serial is readable (#232) --- src/boot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot.sh b/src/boot.sh index 1fb847b..0f8d8fd 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -100,10 +100,11 @@ else fi SM_BIOS="" +PS="/sys/class/dmi/id/product_serial" -if [ -s "/sys/class/dmi/id/product_serial" ]; then +if [ -s "$PS" ] && [ -r "$PS" ]; then - BIOS_SERIAL=$(