lkml.org 
[lkml]   [2003]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 2.5.60 fix ver_linux script for correct output from depmod
From
Date
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/

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