Commit eafdedb2 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] scripts_ver_linux

From:  Frank Davis <fdavis@si.rr.com>

     The ver_linux script is still using rmmod to determine
  module-init-tools version. The following patch uses depmod,
  which produces the appropriate result.
parent 2799fed8
...@@ -28,7 +28,7 @@ fdformat --version | awk -F\- '{print "util-linux ", $NF}' ...@@ -28,7 +28,7 @@ fdformat --version | awk -F\- '{print "util-linux ", $NF}'
mount --version | awk -F\- '{print "mount ", $NF}' mount --version | awk -F\- '{print "mount ", $NF}'
rmmod -V 2>&1 | awk 'NR==1 {print "module-init-tools ",$NF}' depmod -V 2>&1 | awk 'NR==1 {print "module-init-tools ",$NF}'
tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \ tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' | awk \
'NR==1 {print "e2fsprogs ", $2}' 'NR==1 {print "e2fsprogs ", $2}'
......
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