From 2a72785cf89390e214bc0164bde29cded97e22a5 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 15 Feb 2014 16:41:40 +0100 Subject: [PATCH] atm-status.cgi: display more values for solos-pci. --- html/cgi-bin/atm-status.cgi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/html/cgi-bin/atm-status.cgi b/html/cgi-bin/atm-status.cgi index 5c0fa8be9..c2a9914f7 100644 --- a/html/cgi-bin/atm-status.cgi +++ b/html/cgi-bin/atm-status.cgi @@ -46,6 +46,27 @@ foreach (@modems){ my $lines=0; print "
"; my $modem=$_; + my @pfile = `grep . /sys/class/atm/$modem/parameters/* 2>/dev/null`; + foreach (@pfile){ + chomp($_); + my $param= `echo $_ | cut -d'/' -f7 | cut -d':' -f1`; + my $value= `cat /sys/class/atm/$modem/parameters/$param`; + chomp($param); + chomp($value); + if (!($param =~"uevent") + && !($param =~"resource") + && !($param eq "") + ) { + + $lines++; + if ($lines % 2){ + print ""; + }else{ + print ""; + } + print " "; + } + } my @pfile = `grep . /sys/class/atm/$modem/device/* 2>/dev/null`; foreach (@pfile){ chomp($_); @@ -58,6 +79,8 @@ foreach (@modems){ && !($param =~"bInterface") && !($param =~"bAlternateSetting") && !($param =~"bNumEndpoints") + && !($param =~"config matches") + && !($param =~"resource") && !($param eq "") ) { -- 2.39.2
$param$value