docs: update
This commit is contained in:
parent
de5f770a8b
commit
a6562153a2
15
pfetch
15
pfetch
|
@ -121,13 +121,14 @@ get_kernel() {
|
||||||
get_host() {
|
get_host() {
|
||||||
case $os in
|
case $os in
|
||||||
Linux*|GNU*)
|
Linux*|GNU*)
|
||||||
# This works by using the *last* valid file containing
|
# Despite what these files are called, version doesn't
|
||||||
# hardware/host information. Despite what these files are
|
# always contain the version nor does name always contain
|
||||||
# called, version doesn't always contain the version nor
|
# the name.
|
||||||
# does name always contain the name.
|
read -r name < /sys/devices/virtual/dmi/id/product_name
|
||||||
read -r host < /sys/devices/virtual/dmi/id/product_name
|
read -r version < /sys/devices/virtual/dmi/id/product_version
|
||||||
read -r host < /sys/devices/virtual/dmi/id/product_version
|
read -r model < /sys/firmware/devicetree/base/model
|
||||||
read -r host < /sys/firmware/devicetree/base/model
|
|
||||||
|
host="$name $version $model"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user