#!/bin/sh #------------------------------------------------------------------------------ # opt/files/srv/www/admin/wrap.cgi __FLI4LVER__ # # Creation: gdw # Last Update: $Id$ #------------------------------------------------------------------------------ . /srv/www/include/cgi-helper # Security check_rights "hwsupp" "view" . /var/run/hwsupp.conf temperature="`sed 's/\([0-9]\{3\}\)$/.\1/' /sys/bus/i2c/devices/0-0048/temp1_input`" myname=`basename $0` last_list="1h 6h 24h 7d 4w 1y" overview () { for idx in $last_list do if [ "$FORM_last" = "$idx" ] then subtab="$subtab $idx no" else subtab="$subtab $idx $myname?action=overview&last=$idx" fi done show_tab_header $subtab render_graph_main $FORM_last } if [ -e /srv/www/include/rrd-wrap.inc ] then . /srv/www/include/rrd-wrap.inc : ${FORM_action:=overview} : ${FORM_last:=6h} show_html_header "WRAP" show_tab_header "Temperatur" no $FORM_action else cat < Temp $temperature °C EOF fi show_tab_footer show_tab_header "BIOS" no echo "" /usr/sbin/pcengines | grep -v Watchdog | sed 's#^##;s# #\ #g' echo "
#;s# *: *##;s#$#
" show_tab_footer show_html_footer