From 34f2b4b0a1f05d7757a2885d92e917e5f3b13bd9 Mon Sep 17 00:00:00 2001 From: gk Date: Tue, 13 Oct 2020 07:15:20 +1000 Subject: [PATCH] check /sys/devices/virtual/dmi/id/board_name if product_name gives an invalid value --- fet.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fet.sh b/fet.sh index bc836cb..4f8db7c 100755 --- a/fet.sh +++ b/fet.sh @@ -89,6 +89,8 @@ if [ -e /proc/$$/comm ]; then ## Motherboard // laptop read -r model < /sys/devices/virtual/dmi/id/product_name + eq "$model" "System *" && + read -r model < /sys/devices/virtual/dmi/id/board_name ## Packages # clean environment, then make every file in the dir an argument,