mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-10-24 11:54:34 +00:00
check /sys/devices/virtual/dmi/id/board_name if product_name gives an invalid value
This commit is contained in:
1 parent
eede5b7666
commit
34f2b4b0a1
1 file changed
+2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user