From 094672ec59102ae817b186eeaa44aab10ee8d1bf Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 28 Mar 2025 20:11:19 +0100 Subject: [PATCH] fix: Check if serial is readable --- src/boot.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot.sh b/src/boot.sh index 1fb847b..7704712 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=$(