From: Arne Fitzenreiter Date: Sat, 15 Feb 2014 15:41:40 +0000 (+0100) Subject: atm-status.cgi: display more values for solos-pci. X-Git-Tag: v2.15-beta2~3^2~2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a72785cf89390e214bc0164bde29cded97e22a5;p=people%2Fpmueller%2Fipfire-2.x.git atm-status.cgi: display more values for solos-pci. --- diff --git a/html/cgi-bin/atm-status.cgi b/html/cgi-bin/atm-status.cgi index 5c0fa8be94..c2a9914f77 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 "") ) {
$param$value