mirror of
https://github.com/eepykate/fet.sh.git
synced 2026-12-04 21:48:23 +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
|
## Motherboard // laptop
|
||||||
read -r model < /sys/devices/virtual/dmi/id/product_name
|
read -r model < /sys/devices/virtual/dmi/id/product_name
|
||||||
|
eq "$model" "System *" &&
|
||||||
|
read -r model < /sys/devices/virtual/dmi/id/board_name
|
||||||
|
|
||||||
## Packages
|
## Packages
|
||||||
# clean environment, then make every file in the dir an argument,
|
# clean environment, then make every file in the dir an argument,
|
||||||
|
|||||||
Reference in new issue
Block a user