]> git.hungrycats.org Git - linux/commitdiff
[PATCH] scripts_ver_linux
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 9 Feb 2003 10:58:40 +0000 (02:58 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 9 Feb 2003 10:58:40 +0000 (02:58 -0800)
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.

scripts/ver_linux

index 9fe09a9c7f9425b7126c04244e9ddf2fcbf4ce9d..e6bd5ce35b9baf69b2006ffa5c66e2164a9cd9b4 100644 (file)
@@ -28,7 +28,7 @@ fdformat --version | awk -F\- '{print "util-linux            ", $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 \
 'NR==1 {print "e2fsprogs             ", $2}'