patch-ver_linux 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --- ltp-full-20170929.orig/ver_linux 2017-09-29 17:11:55.000000000 +0200
  2. +++ ltp-full-20170929/ver_linux 2017-10-05 19:42:02.235455965 +0200
  3. @@ -9,84 +9,9 @@ echo 'If some fields are empty or look u
  4. echo 'Compare to the current minimal requirements in Documentation/Changes.'
  5. echo ' '
  6. -cat /etc/*release 2> /dev/null
  7. -if [ $? = 1 ]; then
  8. - echo '/etc/issue:'
  9. - cat /etc/issue 2> /dev/null
  10. -fi
  11. -
  12. uname -a
  13. echo ' '
  14. -echo "Gnu C " `gcc --version 2>/dev/null | head -n 1`
  15. -
  16. -make --version 2>&1 | awk -F, '{print $1}' | awk \
  17. - '/GNU Make/{print "Gnu make ",$NF}'
  18. -
  19. -ld -v 2>&1 | awk -F\) '{print $1}' | awk \
  20. - '/BFD/{print "binutils ",$NF}'
  21. -
  22. -fdformat --version 2>&1 | awk -F\- '{print "util-linux ", $NF}'
  23. -
  24. -mount --version 2>&1 | awk -F\- '{print "mount ", $NF}'
  25. -
  26. -insmod -V 2>&1 | awk 'NR==1 {print "modutils ",$NF}'
  27. -
  28. -tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
  29. -'NR==1 {print "e2fsprogs ", $2}'
  30. -
  31. -reiserfsck 2>&1 | grep reiserfsprogs | awk \
  32. -'NR==1{print "reiserfsprogs ", $NF}'
  33. -
  34. -cardmgr -V 2>&1| grep version | awk \
  35. -'NR==1{print "pcmcia-cs ", $3}'
  36. -
  37. -pppd --version 2>&1| grep version | awk \
  38. -'NR==1{print "PPP ", $3}'
  39. -
  40. -isdnctrl 2>&1 | grep version | awk \
  41. -'NR==1{print "isdn4k-utils ", $NF}'
  42. -
  43. -ls -l `ldd /bin/sh | awk '/libc/{print $3}'` | sed \
  44. --e 's/\.so$//' | awk -F'[.-]' '{print "Linux C Library " \
  45. -$(NF-2)"."$(NF-1)"."$NF}'
  46. -
  47. -ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
  48. -'NR==1{print "Dynamic linker (ldd) ", $NF}'
  49. -
  50. -ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \
  51. - '{print "Linux C++ Library " $4"."$5"."$6}'
  52. -
  53. -ps --version 2>&1 | awk 'NR==1{print "Procps ", $NF}'
  54. -
  55. -ifconfig --version 2>&1 | grep tools | awk \
  56. -'NR==1{print "Net-tools ", $NF}'
  57. -
  58. -ip -V 2>&1 | awk \
  59. -'NR==1{print "iproute2 ", $NF}'
  60. -
  61. -ping -V 2>&1 | awk \
  62. -'NR==1{print "iputils ", $NF}'
  63. -
  64. -# Kbd needs 'loadkeys -h',
  65. -loadkeys -h 2>&1 | awk \
  66. -'(NR==1 && ($3 !~ /option/)) {print "Kbd ", $3}'
  67. -
  68. -# while console-tools needs 'loadkeys -V'.
  69. -loadkeys -V 2>&1 | awk \
  70. -'(NR==1 && ($2 ~ /console-tools/)) {print "Console-tools ", $3}'
  71. -
  72. -expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}'
  73. -
  74. -if [ -e /proc/modules ]; then
  75. - X=`cat /proc/modules | sed -e "s/ .*$//"`
  76. - echo "Modules Loaded "$X
  77. -fi
  78. -
  79. -echo
  80. -echo 'free reports:'
  81. -free
  82. -
  83. echo
  84. echo '/proc/cpuinfo'
  85. cat /proc/cpuinfo