* [PATCH] ver_linux script version fix
@ 2003-06-12 0:48 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2003-06-12 0:48 UTC (permalink / raw)
To: torvalds, linux-kernel
Linus, please apply.
ver_linux script should know whether depmod refers to old version or
new version (this way I can tell whether people haven't install
module-init-tools, although it's usually pretty obvious):
depmod -V (new output):
module-init-tools 0.9.12
depmod -V (old output):
depmod version 2.4.21
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.70-bk16/scripts/ver_linux working-2.5.70-bk16-ver_linux/scripts/ver_linux
--- linux-2.5.70-bk16/scripts/ver_linux 2003-05-27 15:02:29.000000000 +1000
+++ working-2.5.70-bk16-ver_linux/scripts/ver_linux 2003-06-12 10:41:09.000000000 +1000
@@ -28,7 +28,7 @@ fdformat --version | awk -F\- '{print "u
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 | awk '/version/ {print "modutils ",$NF} /module-init-tools/ {print "module-init-tools ",$NF}'
tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
'NR==1 {print "e2fsprogs ", $2}'
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-06-12 1:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12 0:48 [PATCH] ver_linux script version fix Rusty Russell
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®