tazpanel rev 630 tip

hardware.cgi: fix cpu name
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jul 08 11:54:48 2019 +0200 (3 months ago)
parents 4c4eaaf30902
children
files hardware.cgi
line diff
     1.1 --- a/hardware.cgi	Sun Jul 07 19:59:19 2019 +0200
     1.2 +++ b/hardware.cgi	Mon Jul 08 11:54:48 2019 +0200
     1.3 @@ -342,7 +342,7 @@
     1.4  
     1.5  		# CPU frequency
     1.6  		if [ -n "$(ls /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 2>/dev/null)" ]; then
     1.7 -			echo "<p><span data-icon=\"@cpu@\">$(sed '/name/!d;s|.*: ||;s|(TM)|™|;s|(R)|®|;q' /proc/cpuinfo) :</span>"
     1.8 +			echo "<p><span data-icon=\"@cpu@\">$(sed '/name/!d;s|.*: ||;s|(TM)|™|g;s|(R)|®|g' /proc/cpuinfo | uniq -c) :</span>"
     1.9  			for f in /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq; do
    1.10  				awk '{ print $1/1000 "MHz" }' < $f
    1.11  			done