mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Cole <elenstev@mesatop.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Frank Davis <fdavis@si.rr.com>,
	linux-kernel@vger.kernel.org, rusty@rustcorp.com.au
Subject: [PATCH] 2.5.60 fix ver_linux script for correct output from depmod
Date: 10 Feb 2003 17:50:26 -0700	[thread overview]
Message-ID: <1044924628.25378.906.camel@localhost.localdomain> (raw)

>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}'


                 reply	other threads:[~2003-02-11  0:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1044924628.25378.906.camel@localhost.localdomain \
    --to=elenstev@mesatop.com \
    --cc=fdavis@si.rr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rusty@rustcorp.com.au \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®