~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/scripts/ver_linux

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #!/bin/sh
  2 # Before running this script please ensure that your PATH is
  3 # typical as you use for compilation/istallation. I use
  4 # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
  5 # differ on your system.
  6 #
  7 PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
  8 echo '-- Versions installed: (if some fields are empty or look'
  9 echo '-- unusual then possibly you have very old versions)'
 10 uname -a
 11 insmod -V  2>&1 | awk 'NR==1 {print "Kernel modules        ",$NF}'
 12 echo "Gnu C                 " `gcc --version`
 13 make --version 2>&1 | awk -F, '{print $1}' | awk \
 14       '/GNU Make/{print "Gnu Make              ",$NF}'
 15 ld -v 2>&1 | awk -F\) '{print $1}' | awk \
 16       '/BFD/{print "Binutils              ",$NF}'
 17 ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed -e 's/\.so$//' \
 18   | awk -F'[.-]'   '{print "Linux C Library        " $(NF-2)"."$(NF-1)"."$NF}'
 19 echo -n "Dynamic linker         "
 20 ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -1
 21 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
 22        '{print "Linux C++ Library      " $4"."$5"."$6}'
 23 ps --version 2>&1 | awk 'NR==1{print "Procps                ", $NF}'
 24 mount --version | awk -F\- '{print "Mount                 ", $NF}'
 25 hostname -V 2>&1 | awk 'NR==1{print "Net-tools             ", $NF}'
 26 # Kbd needs 'loadkeys -h',
 27 loadkeys -h 2>&1 | awk \
 28 '(NR==1 && ($3 !~ /option/)) {print "Kbd                   ", $3}'
 29 # while console-tools needs 'loadkeys -V'.
 30 loadkeys -V 2>&1 | awk \
 31 '(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools         ", $3}'
 32 expr --v 2>&1 | awk 'NR==1{print "Sh-utils              ", $NF}'
 33 X=`cat /proc/modules | sed -e "s/ .*$//"`
 34 echo "Modules Loaded         "$X

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.