#!/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` signal=`echo $val | cut -d "," -f 1` error=`echo $val | cut -d "," -f 2` if [ x$signal = x -o x$signal = x99 ] ; then signal="keine Angabe" else signal="$signal (`expr $signal \* 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
" show_tab_footer echo '
' show_tab_header "Adapter" no echo "" sed -e '{/^\(AT\&V\|OK\)$/d};s/; /\n/g;s/;//g;s/\\/\\\\/g' /tmp/umts.settings | while read line; do syntax=$(echo $line | cut -d":" -f1 | sed -e 's/\\/[\\]/g') [ -z $syntax ] || echo $line:$(grep "^$syntax:" /usr/share/at_syntax|cut -d: -f2-) done | sed -e "s#\(..*\)# #g;s#:###g" echo "
aktuelle Einstellungen
BefehlWertBedeutung
&
#g;s#\(\| \)
" show_tab_footer show_html_footer