Model: Remove dummy info

This commit is contained in:
Dylan Araps 2016-12-03 17:35:11 +11:00
parent 19a6357ce9
commit 18cfafa998

View file

@ -196,12 +196,6 @@ 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}"
model="${model//System Product Name}"
model="${model//System Version}"
;; ;;
"Mac OS X") model="$(sysctl -n hw.model)" ;; "Mac OS X") model="$(sysctl -n hw.model)" ;;
@ -260,6 +254,14 @@ get_model() {
model="$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')" model="$(prtconf -b | awk -F':' '/banner-name/ {printf $2}')"
;; ;;
esac esac
# Remove dummy OEM info
model="${model//To Be Filled*}"
model="${model//OEM*}"
model="${model//Not Applicable}"
model="${model//System Product Name}"
model="${model//System Version}"
model="${model//Undefined}"
} }
get_title() { get_title() {