Commit 18cfafa9 authored by Dylan Araps's avatar Dylan Araps

Model: Remove dummy info

parent 19a6357c
...@@ -196,12 +196,6 @@ get_model() { ...@@ -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() { ...@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment