X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fver_linux;h=beb43ef7f761fffaaa80393129e554922f92b544;hb=1635317facea3094ddf34082cd86797efb1d9f7e;hp=bb195a1c0f2d28e2ee57198917db2c8aea1609fe;hpb=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2;p=linux-2.6 diff --git a/scripts/ver_linux b/scripts/ver_linux index bb195a1c0f..beb43ef7f7 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -25,9 +25,11 @@ ld -v | awk -F\) '{print $1}' | awk \ '/BFD/{print "binutils ",$NF} \ /^GNU/{print "binutils ",$4}' -fdformat --version | awk -F\- '{print "util-linux ", $NF}' +echo -n "util-linux " +fdformat --version | awk '{print $NF}' | sed -e s/^util-linux-// -e s/\)$// -mount --version | awk -F\- '{print "mount ", $NF}' +echo -n "mount " +mount --version | awk '{print $NF}' | sed -e s/^mount-// -e s/\)$// depmod -V 2>&1 | awk 'NR==1 {print "module-init-tools ",$NF}' @@ -87,7 +89,7 @@ loadkeys -V 2>&1 | awk \ expr --v 2>&1 | awk 'NR==1{print "Sh-utils ", $NF}' -udevinfo -V | awk '{print "udev ", $3}' +udevinfo -V 2>&1 | grep version | awk '{print "udev ", $3}' if [ -e /proc/modules ]; then X=`cat /proc/modules | sed -e "s/ .*$//"`