[bootlin/training-materials updates] master: lab-data/embedded-linux-beagleplay: fix cgi-bin/cpuinfo (0b4ce59d)

Michael Opdenacker michael.opdenacker at bootlin.com
Mon Aug 7 16:25:55 CEST 2023


Repository : https://github.com/bootlin/training-materials
On branch  : master
Link       : https://github.com/bootlin/training-materials/commit/0b4ce59d7e97bc69949acb20eabb5606ab893198

>---------------------------------------------------------------

commit 0b4ce59d7e97bc69949acb20eabb5606ab893198
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Wed Jul 26 18:39:01 2023 +0200

    lab-data/embedded-linux-beagleplay: fix cgi-bin/cpuinfo
    
    To get in working again.
    Necessary as /proc/cpuinfo doesn't have the "model name"
    field we had on arm32.
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

0b4ce59d7e97bc69949acb20eabb5606ab893198
 .../embedded-linux-beagleplay/tinysystem/data/www/cgi-bin/cpuinfo     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lab-data/embedded-linux-beagleplay/tinysystem/data/www/cgi-bin/cpuinfo b/lab-data/embedded-linux-beagleplay/tinysystem/data/www/cgi-bin/cpuinfo
index 895422b4..3bd8833e 100755
--- a/lab-data/embedded-linux-beagleplay/tinysystem/data/www/cgi-bin/cpuinfo
+++ b/lab-data/embedded-linux-beagleplay/tinysystem/data/www/cgi-bin/cpuinfo
@@ -3,8 +3,8 @@ echo "Content-type: text/html"
 echo
 echo "<html><header></header><body>"
 echo "<h1>CPU information</h1>"
-echo "Your embedded device uses the below processor:<pre><font color=Blue>"
-echo " "`cat /proc/cpuinfo | grep "model name" | while read cpu; do echo "$cpu <p>"; done`
+echo "Here is information about the CPU in your embedded system:<pre><font color=Blue>"
+cat /proc/cpuinfo
 echo "</font></pre>"
 echo "<p><a href=\"/index.html\"><img src=\"/gohome.png\" border=\"0\"></a></p>"
 echo "</body></html>"




More information about the training-materials-updates mailing list