CVS: theedge/var/lib/lunar/functions modules.lunar,1.28,1.29

elaine at lunar-linux.org elaine at lunar-linux.org
Wed Nov 19 01:20:59 GMT 2003


Update of /var/cvs/lunar/theedge/var/lib/lunar/functions
In directory dbguin.lunar-linux.org:/tmp/cvs-serv24487

Modified Files:
	modules.lunar 
Log Message:
Providing for ARCH specific script files *note* all x86 = <SCRIPT>.i386


Index: modules.lunar
===================================================================
RCS file: /var/cvs/lunar/theedge/var/lib/lunar/functions/modules.lunar,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- modules.lunar	4 Oct 2003 20:19:43 -0000	1.28
+++ modules.lunar	19 Nov 2003 01:20:57 -0000	1.29
@@ -218,7 +218,10 @@
       return 1
     fi
   fi
-  if [ -e "$SCRIPT_DIRECTORY/$2" ] ; then
+  CPU_ARCH=$(uname -m | sed 's/i[456]86/i386/')
+  if [ -e "$SCRIPT_DIRECTORY/$2.$CPU_ARCH" ]; then
+    . $SCRIPT_DIRECTORY/$2.$CPU_ARCH
+  elif [ -e "$SCRIPT_DIRECTORY/$2" ] ; then
     . $SCRIPT_DIRECTORY/$2
   fi    
 }




More information about the Lunar-commits mailing list