#!/bin/sh #------------------------------------------------------------------------------ # opt/files/srv/www/admin/aewin.cgi __FLI4LVER__ # # Creation: gdw # Last Update: $Id: alix.cgi 18952 2010-12-20 22:15:37Z rresch $ #------------------------------------------------------------------------------ . /srv/www/include/cgi-helper # Security check_rights "embedded" "view" . /var/run/embedded.conf show_html_header "AEWIN" VCORE1=`cat /sys/class/hwmon/hwmon0/device/in0_input | sed 's/^\([0-9]\)\([0-9]\)/\1.\2/'` VCORE2=`cat /sys/class/hwmon/hwmon0/device/in1_input | sed 's/^\([0-9]\)\([0-9]\)/\1.\2/'` V33=`cat /sys/class/hwmon/hwmon0/device/in2_input | sed 's/^\([0-9]\)\([0-9]\)/\1.\2/'` V5=`cat /sys/class/hwmon/hwmon0/device/in3_input` V5=`expr $V5 \* 168 | sed 's/^\([0-9]\)\([0-9]\{3\}\).*/\1.\2/'` VCC=`cat /sys/class/hwmon/hwmon0/device/in7_input` VCC=`expr $VCC \* 168 | sed 's/^\([0-9]\)\([0-9]\{3\}\).*/\1.\2/'` VBAT=`cat /sys/class/hwmon/hwmon0/device/in8_input | sed 's/^\([0-9]\)\([0-9]\)/\1.\2/'` TCPU=`cat /sys/class/hwmon/hwmon0/device/temp2_input | sed 's/^\([0-9]\+\)\([0-9]\{3\}\)/\1.\2/'` TBOARD=`cat /sys/class/hwmon/hwmon0/device/temp1_input | sed 's/^\([0-9]\+\)\([0-9]\{3\}\)/\1.\2/'` show_tab_header "Temperatur" no cat < Sensor Temp CPU $TCPU °C PCB $TBOARD °C EOF show_tab_footer show_tab_header "Spannung" no cat < Sensor Spannung VCore 1 $VCORE1 V VCore 2 $VCORE2 V +3,3 $V33 V +5 $V5 V VCC $VCC V VBat $VBAT V EOF show_tab_footer show_html_footer