CVS: moonbase/zbeta/initscripts BUILD,1.4,1.5 DETAILS,1.8,1.9

elaine at lunar-linux.org elaine at lunar-linux.org
Sat Nov 1 21:54:15 GMT 2003


Update of /var/cvs/lunar/moonbase/zbeta/initscripts
In directory dbguin.lunar-linux.org:/tmp/cvs-serv18130

Modified Files:
	BUILD DETAILS 
Log Message:
Adjusted old config backup method


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/zbeta/initscripts/BUILD,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- BUILD	31 Oct 2003 00:46:14 -0000	1.4
+++ BUILD	1 Nov 2003 21:54:13 -0000	1.5
@@ -8,6 +8,8 @@
 echo " " &&
 echo "Then you may begin testing!" &&
 sleep 10 &&
+
+# etc tarball should now be superfluous, but let's keep it during dev
   A=`date +%s`                                                               &&
   if [ -e /var/cache/lunar/etc.tar.bz2 ]; then                               
      mv /var/cache/lunar/etc.tar.bz2 /var/cache/lunar/etc.tar.bz2.$A
@@ -20,17 +22,41 @@
   echo "Your old /etc directory is stored in /var/cache/lunar/etc.tar.bz2!"  &&
   echo ""                                                                    &&
   sleep 2                                                                    &&
+# end of etc tarball bkup
+
+  if [ -d /etc/config.d ] || [ -d /etc/init.d ]; then
+    if [ -f /etc/inittab ] ; then
+      if [ ! -f /etc/inittab.lunar ]; then
+        mv /etc/inittab /etc/inittab.lunar       
+      fi
+    fi
+  fi                                              &&
+
   if [ ! -d /etc/sysconfig ]; then
-     mv /etc/config.d /etc/sysconfig
+     cp -a /etc/config.d /etc/sysconfig
+     mv /etc/config.d /etc/config.lunar
      mv /etc/sysconfig/network /etc/sysconfig/network.old
      ln -s /etc/sysconfig /etc/config.d
-     rm -Rf /etc/rcS.d /etc/init.d
+  fi                                                       &&
+
+# we really don't need to remove the lunar symlink dirs
+# as the don't conflict with the redhat flavors
+#  if [ -d /etc/rcS.d ]; then
+
+
+  if [ -d /etc/init.d ]; then
+    if [ ! -d /etc/init.lunar ]; then
+      mv /etc/init.d /etc/init.lunar
+      mkdir -p /etc/rc.d/init.d
+    else
+      rm -rf /etc/init.d
+    fi
   fi                                                       &&
 
   for i in $(seq 0 6);do 
-           if [ -d /etc/rc$i.d ];then
-              rm -Rf /etc/rc$i.d
-           fi
+    if [ -d /etc/rc$i.d ];then
+      mv /etc/rc$i.d /etc/rc$i.lunar
+    fi
   done                                                     &&
 
   default_make

Index: DETAILS
===================================================================
RCS file: /var/cvs/lunar/moonbase/zbeta/initscripts/DETAILS,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- DETAILS	31 Oct 2003 01:15:33 -0000	1.8
+++ DETAILS	1 Nov 2003 21:54:13 -0000	1.9
@@ -1,5 +1,5 @@
           MODULE=initscripts
-         VERSION=0.0-8
+         VERSION=0.0-9
           SOURCE=$MODULE-$VERSION.tar.bz2
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
    SOURCE_URL[0]=$LRESORT_URL/$SOURCE




More information about the Lunar-commits mailing list