CVS: moonbase/utils/module-init-tools BUILD,1.3,1.4

nestu at lunar-linux.org nestu at lunar-linux.org
Fri Sep 19 18:19:54 GMT 2003


Update of /var/cvs/lunar/moonbase/utils/module-init-tools
In directory dbguin.lunar-linux.org:/tmp/cvs-serv23855

Modified Files:
	BUILD 
Log Message:
cleaned the modutil's files management


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/module-init-tools/BUILD,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- BUILD	6 Sep 2003 05:46:26 -0000	1.3
+++ BUILD	19 Sep 2003 18:19:52 -0000	1.4
@@ -8,14 +8,15 @@
   make                                  &&
   prepare_install                       &&
   install -m0644 modprobe.devfs /etc    &&
-  if [ $(module_installed) modutils ]; then
-     cp /sbin/insmod /sbin/lsmod.old
-     ln -s /sbin/lsmod.old /bin/lsmod.old
-     cp /sbin/depmod /sbin/depmod.old
-     cp /sbin/modinfo /sbin/modinfo.old
-     cp /sbin/modprobe /sbin/modprobe.old
-     cp /sbin/rmmod /sbin/rmmod.old
-  fi                                     &&
+
+    if  module_installed modutils ; then
+	for file in /sbin/insmod /sbin/lsmod /sbin/depmod \
+		    /sbin/modinfo /sbin/modprobe /sbin/rmmod
+	do
+	    test -e $file && mv $file $file.old
+	done     
+    fi					&&
+    
   make install                           &&
   if [ ! -e /etc/modprobe.conf ]; then
   ./generate-modprobe.conf /etc/modprobe.conf




More information about the Lunar-commits mailing list