* [PATCH] 2.5.60 fix ver_linux script for correct output from depmod
@ 2003-02-11 0:50 Steven Cole
0 siblings, 0 replies; only message in thread
From: Steven Cole @ 2003-02-11 0:50 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Frank Davis, linux-kernel, rusty
>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}'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-11 0:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-11 0:50 [PATCH] 2.5.60 fix ver_linux script for correct output from depmod Steven Cole
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®