2003-01-10 00:44:26

by carbonated beverage

[permalink] [raw]
Subject: [[email protected]: [PATCH] module-init-tools update]

Resend, as I didn't see this one show up on l-k.

Here's a small patch for Documentation/Changes and scripts/ver_linux
to use depmod instead of rmmod as per Rusty's suggestion.

rmmod will exec the old version of the modutils depending on the
command-line, whereas depmod will give its own version instead.

Please apply.

-- DN
Daniel

--- Documentation/Changes.old Thu Jan 9 10:51:36 2003
+++ Documentation/Changes Thu Jan 9 11:27:54 2003
@@ -52,7 +52,7 @@
o Gnu make 3.78 # make --version
o binutils 2.9.5.0.25 # ld -v
o util-linux 2.10o # fdformat --version
-o module-init-tools 0.9 # rmmod -V
+o module-init-tools 0.9 # depmod -V
o e2fsprogs 1.29 # tune2fs
o jfsutils 1.0.14 # fsck.jfs -V
o reiserfsprogs 3.6.3 # reiserfsck -V 2>&1|grep reiserfsprogs
--- scripts/ver_linux.old Thu Jan 9 10:52:10 2003
+++ scripts/ver_linux Thu Jan 9 11:27:57 2003
@@ -28,7 +28,7 @@

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}'