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

csm at lunar-linux.org csm at lunar-linux.org
Sat Sep 6 05:46:28 GMT 2003


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

Modified Files:
	BUILD 
Log Message:
this module did not work properly and was leaving out some things.
insmod from modutils is actually a symbolic link and it was not
being handled properly by this module (insmod.old was not being
made properly) and /etc/modprobe.conf and /etc/modprobe.devfs were
not being created. Hopefully this will fix it for now.


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/utils/module-init-tools/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	5 Sep 2003 06:24:35 -0000	1.2
+++ BUILD	6 Sep 2003 05:46:26 -0000	1.3
@@ -7,9 +7,19 @@
 	       --prefix=/		&&
   make                                  &&
   prepare_install                       &&
-  make moveold || true                  &&
-  make install                          &&
-  default_make                          &&
+  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                                     &&
+  make install                           &&
+  if [ ! -e /etc/modprobe.conf ]; then
+  ./generate-modprobe.conf /etc/modprobe.conf
+  fi                                     &&
   install -m0700 $SCRIPT_DIRECTORY/init.d/modutils /etc/init.d   &&
   ln -sf ../init.d/modutils /etc/rcS.d/S20modutils 
 




More information about the Lunar-commits mailing list