From 330a08b8a5aa40b6a7e0ca5b03d3489ecce172e7 Mon Sep 17 00:00:00 2001 From: Steven Cole Date: Mon, 6 Sep 2004 02:16:38 +0200 Subject: 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 Signed-off-by: Sam Ravnborg --- scripts/ver_linux | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') 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}' -- cgit v1.2.3