#!/bin/sh #------------------------------------------------------------------------------ # opt/files/srv/www/admin/fscpc.cgi __FLI4LVER__ # # Creation: gdw # Last Update: $Id$ #------------------------------------------------------------------------------ . /srv/www/include/cgi-helper # Security check_rights "embedded" "view" . /var/run/embedded.conf volt1=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in0_input` volt3=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in2_input` volt4=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in3_input` volt5=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in4_input` volt7=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in6_input` volt8=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in7_input` volt9=`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/devices/platform/w83627ehf.656/in8_input` volt2=`cat /sys/devices/platform/w83627ehf.656/in1_input` volt2=`expr $volt2 \* 663 | sed 's/\([0-9]\{5\}\)$/.\1/'` volt6=`cat /sys/devices/platform/w83627ehf.656/in5_input` volt6=`expr $volt6 \* 4 | sed 's/\([0-9]\{3\}\)$/.\1/'` temp1=`sed 's/\([0-9]\)[0-9]\{2\}$/.\1/' /sys/devices/platform/w83627ehf.656/temp1_input` temp2=`sed 's/\([0-9]\)[0-9]\{2\}$/.\1/' /sys/devices/platform/w83627ehf.656/temp2_input` fan4=`cat /sys/devices/platform/w83627ehf.656/fan4_input` freq=`sed 's/\([0-9]\{3\}\)$//' /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq` show_html_header "x7sla" show_tab_header "Temperaturen" no cat < Sensor Temp CPU $temp1 °C PCB $temp2 °C EOF show_tab_footer show_tab_header "Spannungen" no cat < Sensor Spannung Vcore $volt1 V +12V $volt2 V +3.3V $volt3 V Vcc $volt4 V Vdimm $volt5 V +5V $volt6 V +1.5V $volt7 V 3VSB $volt8 V Vbat $volt9 V EOF show_tab_footer if [ -n "`lsmod | grep p4_clockmod`" ] then show_tab_header "Prozessor" no cat < Taktfrequenz $freq MHz EOF show_tab_footer fi show_html_footer