# HG changeset patch # User Pascal Bellard # Date 1562418194 -7200 # Node ID b932799f8ae1490d86f6222930fb0268ef08afff # Parent bf8941ab3cc3fdf30b57bcb6adc5edcabf91b60e Fix boot & hardware title diff -r bf8941ab3cc3 -r b932799f8ae1 boot.cgi --- a/boot.cgi Tue Feb 26 08:30:05 2019 +0100 +++ b/boot.cgi Sat Jul 06 15:03:14 2019 +0200 @@ -478,7 +478,7 @@ # Default content with summary # . /etc/rcS.conf - xhtml_header "$(_ 'Boot & Start services')" + xhtml_header "$(_ 'Boot \& Start services')" cat <$(_ 'Everything that happens before user login')

diff -r bf8941ab3cc3 -r b932799f8ae1 hardware.cgi --- a/hardware.cgi Tue Feb 26 08:30:05 2019 +0100 +++ b/hardware.cgi Sat Jul 06 15:03:14 2019 +0200 @@ -262,7 +262,7 @@ # # Default to summary with mounted filesystem, loaded modules # - xhtml_header "$(_ 'Drivers & Devices')" + xhtml_header "$(_ 'Drivers \& Devices')" cat <$(_ 'Manage your computer hardware')

@@ -340,6 +340,14 @@ echo '

' fi + # CPU frequency + if [ -n "$(ls /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq 2>/dev/null)" ]; then + echo "

$(_ 'CPU:')" + for f in /sys/devices/system/cpu/*/cpufreq/cpuinfo_cur_freq; do + awk '{ print $1/1000 "MHz" }' < $f + done + echo '

' + fi # Brightness if [ -n "$(ls /sys/devices/virtual/backlight/*/brightness 2>/dev/null)" ]; then