From 8716d1fe997ab0fa5c9babdae4233c9bebe6706b Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sat, 11 Jul 2020 21:35:26 +0100 Subject: [PATCH] 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. --- Ports/neofetch/patches/add-serenity-support.patch | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Ports/neofetch/patches/add-serenity-support.patch b/Ports/neofetch/patches/add-serenity-support.patch index b7b64b7c1fa..eabe1b21f1c 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.