tazpanel 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 |
files | boot.cgi hardware.cgi |
line diff
1.1 --- a/boot.cgi Tue Feb 26 08:30:05 2019 +0100 1.2 +++ b/boot.cgi Sat Jul 06 15:03:14 2019 +0200 1.3 @@ -478,7 +478,7 @@ 1.4 # Default content with summary 1.5 # 1.6 . /etc/rcS.conf 1.7 - xhtml_header "$(_ 'Boot & Start services')" 1.8 + xhtml_header "$(_ 'Boot \& Start services')" 1.9 cat <<EOT 1.10 <p>$(_ 'Everything that happens before user login')</p> 1.11
2.1 --- a/hardware.cgi Tue Feb 26 08:30:05 2019 +0100 2.2 +++ b/hardware.cgi Sat Jul 06 15:03:14 2019 +0200 2.3 @@ -262,7 +262,7 @@ 2.4 # 2.5 # Default to summary with mounted filesystem, loaded modules 2.6 # 2.7 - xhtml_header "$(_ 'Drivers & Devices')" 2.8 + xhtml_header "$(_ 'Drivers \& Devices')" 2.9 cat <<EOT 2.10 <p>$(_ 'Manage your computer hardware')</p> 2.11 2.12 @@ -340,6 +340,14 @@ 2.13 echo '</p>' 2.14 fi 2.15 2.16 + # CPU frequency 2.17 + if [ -n "$(ls /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 2>/dev/null)" ]; then 2.18 + echo "<p><span data-icon=\"@daemons@\">$(_ 'CPU:')</span>" 2.19 + for f in /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq; do 2.20 + awk '{ print $1/1000 "MHz" }' < $f 2.21 + done 2.22 + echo '</p>' 2.23 + fi 2.24 2.25 # Brightness 2.26 if [ -n "$(ls /sys/devices/virtual/backlight/*/brightness 2>/dev/null)" ]; then