>From the depmod man page:
BUGS
depmod [ -V | --version ] should exit immediately. Instead, it prints
the version information and behaves as if no options were given.
A recent change to the ver_linux script replaced "rmmod" with "depmod",
to determine module-init-tools version, but the output looks like this:
[snip]
mount 2.11n
module-init-tools file
e2fsprogs 1.28
[snip]
The following patch adds a "| grep version" filter to the depmod -V output.
[snip]
mount 2.11n
module-init-tools 2.4.22
e2fsprogs 1.28
[snip]
Steven
--- linux-2.5.60/scripts/ver_linux.orig Mon Feb 10 17:18:17 2003
+++ linux-2.5.60/scripts/ver_linux Mon Feb 10 17:19:36 2003
@@ -28,7 +28,7 @@
mount --version | awk -F\- '{print "mount ", $NF}'
-depmod -V 2>&1 | awk 'NR==1 {print "module-init-tools ",$NF}'
+depmod -V 2>&1 | grep version | awk 'NR==1 {print "module-init-tools ",$NF}'
tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
'NR==1 {print "e2fsprogs ", $2}'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:31 EST