CVS: moonbase/zbeta/initscripts BUILD,1.1,1.2 POST_INSTALL,1.1,1.2

Chuck Mead csm at lunar-linux.org
Wed Oct 29 01:03:49 GMT 2003


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

Modified Files:
	BUILD POST_INSTALL 
Log Message:
fixing this so it does a better job of setting things up


Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/zbeta/initscripts/BUILD,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- BUILD	25 Oct 2003 18:56:06 -0000	1.1
+++ BUILD	29 Oct 2003 01:03:47 -0000	1.2
@@ -1,8 +1,24 @@
 (
-  if [ ! -e /etc/sysconfig ]; then
-     cp -a /etc/config.d /etc/sysconfig
+  tar cjvf etc.tar.bz2 /etc                                      &&
+  chmod 0600 etc.tar.bz2                                         &&
+  mv etc.tar.bz2 /var/cache/lunar                                &&
+  echo "Your old /etc directory is stored in /var/cache/lunar!"  &&
+  echo ""                                                        &&
+  sleep 2                                                        &&
+  if [ ! -d /etc/sysconfig ]; then
+     mv /etc/config.d /etc/sysconfig
+     mv /etc/sysconfig/network /etc/sysconfig/network.old
      ln -s /etc/sysconfig /etc/config.d
-  fi
+     rm -Rf /etc/rcS.d
+  fi                                                       &&
+
+  for i in $(seq 0 6);do 
+           if [ -d /etc/rc$i.d ];then
+              rm -Rf /etc/rc$i.d
+           fi
+  done                                                     &&
+
   default_make
+
 ) > $C_FIFO 2>&1
 

Index: POST_INSTALL
===================================================================
RCS file: /var/cvs/lunar/moonbase/zbeta/initscripts/POST_INSTALL,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- POST_INSTALL	26 Oct 2003 17:53:24 -0000	1.1
+++ POST_INSTALL	29 Oct 2003 01:03:47 -0000	1.2
@@ -4,3 +4,14 @@
 echo "3. rm -Rf init.d;tar xjvf init.d.tar.bz2"
 echo " "
 echo "Then you may begin testing!"
+
+if [ ! -e /etc/sysconfig/network ]; then
+   echo "NETWORKING=yes" > /etc/sysconfig/network
+   echo "HOSTNAME=$HOSTNAME" >> /etc/sysconfig/network
+fi
+
+echo ""
+echo "To set up networking run /usr/sbin/netconfig"
+echo ""
+echo "If you do not have that command then run: lin pump"
+echo ""




More information about the Lunar-commits mailing list