Commit 330a08b8 authored by Steven Cole's avatar Steven Cole Committed by Tom Rini

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: default avatarSteven Cole <elenstev@mesatop.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent e9ba0414
...@@ -37,8 +37,11 @@ tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \ ...@@ -37,8 +37,11 @@ tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
fsck.jfs -V 2>&1 | grep version | sed 's/,//' | awk \ fsck.jfs -V 2>&1 | grep version | sed 's/,//' | awk \
'NR==1 {print "jfsutils ", $3}' 'NR==1 {print "jfsutils ", $3}'
reiserfsck -V 2>&1 | grep reiserfsprogs | awk \ reiserfsck -V 2>&1 | grep reiserfsck | awk \
'NR==1{print "reiserfsprogs ", $NF}' '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 \ xfs_db -V 2>&1 | grep version | awk \
'NR==1{print "xfsprogs ", $3}' 'NR==1{print "xfsprogs ", $3}'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment