patch-ver_linux 2.4 KB

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