summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2020-07-11 21:35:26 +0100
committerAndreas Kling <kling@serenityos.org>2020-07-11 23:16:16 +0200
commit8716d1fe997ab0fa5c9babdae4233c9bebe6706b (patch)
tree66e78bc44162428d66f2204ec1e34881d4cd3ac6
parent858f6dc1d1b7026a857567f59bf4a7d315b31cbf (diff)
downloadserenity-8716d1fe997ab0fa5c9babdae4233c9bebe6706b.zip
Ports: Disable /proc/cpuinfo parsing in neofetch, for now
We don't really have a good way of parsing and processing JSON in the shell yet, and the solution used for /proc/memstat (read) is very limited and doesn't work for the more complex /proc/cpuinfo array. Let's disable cpu detection in neofetch for now until we can come up with a good solution.
-rw-r--r--Ports/neofetch/patches/add-serenity-support.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/Ports/neofetch/patches/add-serenity-support.patch b/Ports/neofetch/patches/add-serenity-support.patch
index b7b64b7c1f..eabe1b21f1 100644
--- a/Ports/neofetch/patches/add-serenity-support.patch
+++ b/Ports/neofetch/patches/add-serenity-support.patch
@@ -110,11 +110,11 @@
;;
+
+ "SerenityOS")
-+ while IFS=":" read -r a b; do
-+ case $a in
-+ "brandstr") cpu="${b//\"}" ;;
-+ esac
-+ done < /proc/cpuinfo
++ # while IFS=":" read -r a b; do
++ # case $a in
++ # "brandstr") cpu="${b//\"}" ;;
++ # esac
++ # done < /proc/cpuinfo
+ # `cpu` will contain "@ [speed]GHz" and to be super correct we
+ # have to cut that off and store it in `speed` only for neofetch
+ # to append it again later - but that's fine for now this way.