"Fossies" - the Fresh Open Source Software Archive

Member "systeminfo/report/module.sh" (4 Feb 2005, 288 Bytes) of package /linux/privat/old/systeminfov12.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 # Modules Information Generator
    3 
    4 while read line; do
    5 echo $line | grep -q '<span style="font-weight:">'
    6 if [[ $? -eq 0 ]]
    7 then
    8     echo $line
    9     lsmod | while read ln; do
   10     [[ ! -z $ln ]] && echo $ln"<br>"
   11     done
   12 else
   13     echo $line
   14 fi
   15 done < module.html >  $1/module.html