Skip to contentSkip to conversation

fix module-init-tools ver_linux problem.

PATCH [email protected] 1 participant 1 message May 15, 2003

lore
Share & tools
lore
#0 lore raw

Patch from Steven Cole to fix up ver_linux output on a system with no module-init-tools, just modutils.

As noted in bugzilla #267 and at
http://marc.theaimsgroup.com/?l=linux-kernel&m=104492524815220&w=2

scripts/ver_linux +1 -1
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/scripts/ver_linux linux-2.5/scripts/ver_linux
@@ -28,7 +28,7 @@ fdformat --version | awk -F\- '{print "u
 
 mount --version | awk -F\- '{print "mount                 ", $NF}'
 
-depmod -V  2>&1 | awk 'NR==1 {print "module-init-tools     ",$NF}'
+depmod -V  2>&1 | grep version | awk 'NR==1 {print "module-init-tools     ",$NF}'
 
 tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' |  awk \
 'NR==1 {print "e2fsprogs             ", $2}'