"Fossies" - the Fresh Open Source Software Archive

Member "systeminfo/report/network.sh" (4 Feb 2005, 486 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 # System kernel tunable parameters Generator
    3 while read line; do
    4 echo $line | grep -q '<span style="font-weight:">'
    5 if [[ $? -eq 0 ]]
    6 then
    7     echo $line
    8     echo "<b>System Network Interface Information</b><br><br>"
    9     ip link show | while read ln; do
   10     echo $ln"<br>"
   11     done
   12     echo "<br><b>System Network Interface configuration</b><br><br>"
   13     ifconfig -a | while read ln; do
   14     echo $ln"<br>"
   15     done
   16 else
   17     echo $line
   18 fi
   19 done < network.html > $1/network.html