aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-24 13:50:28 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-24 13:50:28 +0300
commita6562153a208fefacb7c4d4e47ff2d885d363b10 (patch)
treec3c75ae9f6cc03e7db42be6c5c7c2fe0dc8f9511
parentde5f770a8b1dd0b4940693b801a11747a1b916cd (diff)
downloadpfetch-a6562153a208fefacb7c4d4e47ff2d885d363b10.tar.gz
docs: update
-rwxr-xr-xpfetch15
1 files changed, 8 insertions, 7 deletions
diff --git a/pfetch b/pfetch
index d65c2ea..ba20147 100755
--- a/pfetch
+++ b/pfetch
@@ -121,13 +121,14 @@ get_kernel() {
get_host() {
case $os in
Linux*|GNU*)
- # This works by using the *last* valid file containing
- # hardware/host information. Despite what these files are
- # called, version doesn't always contain the version nor
- # does name always contain the name.
- read -r host < /sys/devices/virtual/dmi/id/product_name
- read -r host < /sys/devices/virtual/dmi/id/product_version
- read -r host < /sys/firmware/devicetree/base/model
+ # Despite what these files are called, version doesn't
+ # always contain the version nor does name always contain
+ # the name.
+ read -r name < /sys/devices/virtual/dmi/id/product_name
+ read -r version < /sys/devices/virtual/dmi/id/product_version
+ read -r model < /sys/firmware/devicetree/base/model
+
+ host="$name $version $model"
;;
esac