From 0b96b1e4c59efee35ef4c51aee60ab626bbbaf14 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 25 Nov 2016 10:33:56 +1100 Subject: [PATCH] Model: [Linux] Remove more OEM strings --- neofetch | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 89513138..0209e133 100755 --- a/neofetch +++ b/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)" ;;