Model: [Linux] Remove more OEM strings

This commit is contained in:
Dylan Araps 2016-11-25 10:33:56 +11:00
parent b7e6c9931a
commit 0b96b1e4c5
1 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,6 @@ get_model() {
-f /sys/devices/virtual/dmi/id/product_version ]]; then
model="$(< /sys/devices/virtual/dmi/id/product_name)"
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
model="${model/To Be Filled*}"
elif [[ -f /sys/firmware/devicetree/base/model ]]; then
model="$(< /sys/firmware/devicetree/base/model)"
@ -57,6 +56,10 @@ get_model() {
elif [[ -f /tmp/sysinfo/model ]]; then
model="$(< /tmp/sysinfo/model)"
fi
model="${model//To Be Filled*}"
model="${model//OEM*}"
model="${model//Not Applicable}"
;;
"Mac OS X") model="$(sysctl -n hw.model)" ;;