From ea8f373d04327865015c76d44babfca2836fb8ae Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 24 Sep 2019 13:40:48 +0300 Subject: [PATCH] docs: update --- pfetch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pfetch b/pfetch index 9faf3b2..d65c2ea 100755 --- a/pfetch +++ b/pfetch @@ -121,6 +121,10 @@ 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