From eafdedb2e3edb01e2267dc7b66d8e3e2e6aacaf9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 9 Feb 2003 02:58:40 -0800 Subject: [PATCH] scripts_ver_linux From: Frank Davis 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/ver_linux') diff --git a/scripts/ver_linux b/scripts/ver_linux index 9fe09a9c7f94..e6bd5ce35b9b 100644 --- a/scripts/ver_linux +++ b/scripts/ver_linux @@ -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}' -- cgit v1.2.3