Commit 192014ca authored by Dylan Araps's avatar Dylan Araps

Model: Remove useless use of cat

parent cbd577e1
...@@ -43,7 +43,8 @@ getmodel() { ...@@ -43,7 +43,8 @@ getmodel() {
"Linux") "Linux")
if [ -f /sys/devices/virtual/dmi/id/product_name ] ||\ if [ -f /sys/devices/virtual/dmi/id/product_name ] ||\
[ -f /sys/devices/virtual/dmi/id/product_version ]; then [ -f /sys/devices/virtual/dmi/id/product_version ]; then
model="$(cat /sys/devices/virtual/dmi/id/product_{name,version} 2>/dev/null)" model="$(< /sys/devices/virtual/dmi/id/product_name)"
model+=" $(< /sys/devices/virtual/dmi/id/product_version)"
model="${model/To Be Filled*}" model="${model/To Be Filled*}"
elif [ -f /sys/firmware/devicetree/base/model ]; then elif [ -f /sys/firmware/devicetree/base/model ]; then
......
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