[2.6] Bugzilla bug # 267 - ver_linux script fails to give module-init-tools version
PATCH 1/1 [2.6] Bugzilla bug # 267 - ver_linux script fails to give module-init-tools version
This patch fixes the scripts/ver_linux script, which did not report any version for module-init-tools when using module-init-tools. If modutils were used, it printed out the version. In both cases, the effect was not wanted. (If modutils are used, nothing should be printed out.)
Josef "Jeff" Sipek
scripts/ver_linux +1 -1
@@ -28,7 +28,7 @@ mount --version | awk -F\- '{print "mount ", $NF}' -depmod -V 2>&1 | grep version | awk 'NR==1 {print "module-init-tools ",$NF}' +depmod -V 2>&1 | grep "module-init-tools" | awk 'NR==1 {print "module-init-tools ",$NF}' tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \ 'NR==1 {print "e2fsprogs ", $2}'