#!/bin/sh #------------------------------------------------------------------------------ # opt/files/srv/www/admin/umts.cgi __FLI4LVER__ # # Creation: Hans Kraus # Last Update: $Id$ #------------------------------------------------------------------------------ . /srv/www/include/cgi-helper # Security check_rights "umts" "view" show_html_header "UMTS" val=`get_umts_csq webif` signalval=`echo $val | cut -d "," -f 1` error=`echo $val | cut -d "," -f 2` if [ x$signalval = x -o x$signalval = x99 ] ; then signal="keine Angabe" else signal="$signalval (`expr $signalval \* 2 - 113`dbm)" fi if [ x$error = x -o x$error = x99 ] ; then error="keine Angabe" fi show_tab_header "Empfang" no echo "
Status |
---|
Signalqualität: $signal |
Bitfehlerrate: $error |
"
if echo $signalval | grep -q "^[0-9]\{1,2\}$" && [ "$signalval" -le 31 ]
then
width=$(expr $signalval \* 500 / 31)
echo " "
else
echo " Ungültiger Wert "
fi
echo ' |
aktuelle Einstellungen | ||
---|---|---|
Befehl | Wert | Bedeutung |
& | #g;s# | \(\| \) | #\ | #g" echo "