Model: [Linux] Remove more OEM strings
This commit is contained in:
parent
b7e6c9931a
commit
0b96b1e4c5
5
neofetch
5
neofetch
|
@ -49,7 +49,6 @@ get_model() {
|
||||||
-f /sys/devices/virtual/dmi/id/product_version ]]; then
|
-f /sys/devices/virtual/dmi/id/product_version ]]; then
|
||||||
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
model="$(< /sys/devices/virtual/dmi/id/product_name)"
|
||||||
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
|
||||||
model="${model/To Be Filled*}"
|
|
||||||
|
|
||||||
elif [[ -f /sys/firmware/devicetree/base/model ]]; then
|
elif [[ -f /sys/firmware/devicetree/base/model ]]; then
|
||||||
model="$(< /sys/firmware/devicetree/base/model)"
|
model="$(< /sys/firmware/devicetree/base/model)"
|
||||||
|
@ -57,6 +56,10 @@ get_model() {
|
||||||
elif [[ -f /tmp/sysinfo/model ]]; then
|
elif [[ -f /tmp/sysinfo/model ]]; then
|
||||||
model="$(< /tmp/sysinfo/model)"
|
model="$(< /tmp/sysinfo/model)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
model="${model//To Be Filled*}"
|
||||||
|
model="${model//OEM*}"
|
||||||
|
model="${model//Not Applicable}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
"Mac OS X") model="$(sysctl -n hw.model)" ;;
|
||||||
|
|
Reference in New Issue