diff options
| author | Steven Cole <elenstev@mesatop.com> | 2004-09-06 02:16:38 +0200 |
|---|---|---|
| committer | Tom Rini <trini@kernel.crashing.org> | 2004-09-06 02:16:38 +0200 |
| commit | 330a08b8a5aa40b6a7e0ca5b03d3489ecce172e7 (patch) | |
| tree | cddb806cf3200e7962fe58a723cec0258595a748 /scripts/ver_linux | |
| parent | e9ba0414238d3667c852a66cd282b24b0b6fdddd (diff) | |
scripts: Update ver_linux for recent reiserfsprogs
The ver_linux script is fixed to report recent versions of
reiserfsprogs. (Older versions had "reiserfsprogs" in the
line containing the version number, while recent versions
report "reiserfsck" followed by version number).
The ver_linux script is updated to report the reiser4progs
version number.
This was tested with reiserfsprogs 3.6.11, 3.6.18 and
reiser4progs 1.0.0.
Signed-off-by: Steven Cole <elenstev@mesatop.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/ver_linux')
| -rwxr-xr-x | scripts/ver_linux | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/ver_linux b/scripts/ver_linux index 47f14cbac39e..8b5c009ca78c 100755 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -37,8 +37,11 @@ tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \ fsck.jfs -V 2>&1 | grep version | sed 's/,//' | awk \ 'NR==1 {print "jfsutils ", $3}' -reiserfsck -V 2>&1 | grep reiserfsprogs | awk \ -'NR==1{print "reiserfsprogs ", $NF}' +reiserfsck -V 2>&1 | grep reiserfsck | awk \ +'NR==1{print "reiserfsprogs ", $2}' + +fsck.reiser4 -V 2>&1 | grep fsck.reiser4 | awk \ +'NR==1{print "reiser4progs ", $2}' xfs_db -V 2>&1 | grep version | awk \ 'NR==1{print "xfsprogs ", $3}' |
