[lkml]   [2003]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] ver_linux script version fix
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.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:36    [W:0.027 / U:2.716 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site