mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 17:09:21 +00:00
Model: [Linux] Remove more OEM strings
This commit is contained in:
5
neofetch
5
neofetch
@@ -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)" ;;
|
||||
|
Reference in New Issue
Block a user