/sys/devices/virtual/dmi/id/board_* for motherboard identification (#1943)
This commit is contained in:
parent
4b91c94360
commit
222b1cd8d5
1 changed files with 5 additions and 0 deletions
5
neofetch
5
neofetch
|
@ -1235,6 +1235,11 @@ get_model() {
|
|||
if [[ -d /system/app/ && -d /system/priv-app ]]; then
|
||||
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
|
||||
|
||||
elif [[ -f /sys/devices/virtual/dmi/id/board_vendor ||
|
||||
-f /sys/devices/virtual/dmi/id/board_name ]]; then
|
||||
model=$(< /sys/devices/virtual/dmi/id/board_vendor)
|
||||
model+=" $(< /sys/devices/virtual/dmi/id/board_name)"
|
||||
|
||||
elif [[ -f /sys/devices/virtual/dmi/id/product_name ||
|
||||
-f /sys/devices/virtual/dmi/id/product_version ]]; then
|
||||
model=$(< /sys/devices/virtual/dmi/id/product_name)
|
||||
|
|
Loading…
Reference in a new issue