check /sys/devices/virtual/dmi/id/board_name if product_name gives an invalid value

This commit is contained in:
gk committed 2020-10-13 07:15:20 +10:00
1 parent eede5b7666
commit 34f2b4b0a1
1 file changed
+2
+2
View File
@@ -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,