tazpanel diff hardware.cgi @ rev 627
Fix boot & hardware title
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 06 15:03:14 2019 +0200 (2019-07-06) |
parents | bf8941ab3cc3 |
children | c56eca297b15 |
line diff
1.1 --- a/hardware.cgi Tue Feb 26 08:30:05 2019 +0100 1.2 +++ b/hardware.cgi Sat Jul 06 15:03:14 2019 +0200 1.3 @@ -262,7 +262,7 @@ 1.4 # 1.5 # Default to summary with mounted filesystem, loaded modules 1.6 # 1.7 - xhtml_header "$(_ 'Drivers & Devices')" 1.8 + xhtml_header "$(_ 'Drivers \& Devices')" 1.9 cat <<EOT 1.10 <p>$(_ 'Manage your computer hardware')</p> 1.11 1.12 @@ -340,6 +340,14 @@ 1.13 echo '</p>' 1.14 fi 1.15 1.16 + # CPU frequency 1.17 + if [ -n "$(ls /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 2>/dev/null)" ]; then 1.18 + echo "<p><span data-icon=\"@daemons@\">$(_ 'CPU:')</span>" 1.19 + for f in /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq; do 1.20 + awk '{ print $1/1000 "MHz" }' < $f 1.21 + done 1.22 + echo '</p>' 1.23 + fi 1.24 1.25 # Brightness 1.26 if [ -n "$(ls /sys/devices/virtual/backlight/*/brightness 2>/dev/null)" ]; then