The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Steven Cole <elenstev@mesatop.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org, reiserfs-list@namesys.com
Subject: [PATCH] 2.4.20-pre5-ac1 update ver_linux to report version of reiserfsprogs.
Date: 30 Aug 2002 12:18:45 -0600	[thread overview]
Message-ID: <1030731527.20626.17.camel@localhost.localdomain> (raw)


This patch updates the ver_linux script to work with recent 
versions of reiserfsprogs.

Reasons for this update are:

1) Recent versions of reiserfsprogs require the -V option
   to report the version number.
2) Very recent reiserfsprogs (3.6.3+) are installed in /usr/local/sbin.

Old reiserfsprogs which will not respond to -V are deprecated,
and are covered by "If some fields are empty or look unusual
you may have an old version."

This updated ver_linux script was tested with reiserfsprogs
3.x.0j, 3.6.3, and 3.6.4-pre1.

The addition of /usr/local/sbin to $PATH could have some
side effects, so further testing is welcomed.

This patch was made against 2.4.20-pre5-ac1.

Steven


--- linux-2.4.20-pre5-ac1/scripts/ver_linux.orig	Fri Aug 30 08:52:50 2002
+++ linux-2.4.20-pre5-ac1/scripts/ver_linux	Fri Aug 30 09:04:08 2002
@@ -4,7 +4,7 @@
 # /bin /sbin /usr/bin /usr/sbin /usr/local/bin, but it may
 # differ on your system.
 #
-PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
+PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:$PATH
 echo 'If some fields are empty or look unusual you may have an old version.'
 echo 'Compare to the current minimal requirements in Documentation/Changes.'
 echo ' '
@@ -33,7 +33,7 @@
 tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' |  awk \
 'NR==1 {print "e2fsprogs             ", $2}'
 
-reiserfsck 2>&1 | grep reiserfsprogs | awk \
+reiserfsck -V 2>&1 | grep reiserfsprogs | awk \
 'NR==1{print "reiserfsprogs         ", $NF}'
 
 cardmgr -V 2>&1| grep version | awk \




                 reply	other threads:[~2002-08-30 18:16 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=1030731527.20626.17.camel@localhost.localdomain \
    --to=elenstev@mesatop.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reiserfs-list@namesys.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