[Lunar-commits] r14959 - lunar-iso/trunk/lunar-install/sbin

Auke Kok sofar at lunar-linux.org
Sun May 22 21:19:51 UTC 2005


Author: sofar
Date: 2005-05-22 21:19:50 +0000 (Sun, 22 May 2005)
New Revision: 14959

Modified:
   lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
Sloppy, good thing I test.


Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-22 20:49:15 UTC (rev 14958)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install	2005-05-22 21:19:50 UTC (rev 14959)
@@ -41,7 +41,8 @@
     umount $TARGET/proc
 
     # debug the problem in case there is one
-    (
+    if [ $RESULT != 0 ] ; then 
+      (
     	echo ""
 	echo "ERROR: An error occurred while executing a command. The command was:"
 	echo "ERROR: \"$@\""
@@ -52,7 +53,8 @@
 	echo ""
 	echo "Press ENTER to continue"
 	read JUNK
-    ) >&2
+      ) >&2
+    fi
     return $RESULT
 }
 
@@ -704,11 +706,10 @@
 
 	# some more missing files:
 	cp /etc/lunar.release $TARGET/etc/
-	> $TARGET/etc/lunar/local/config
+	echo "GCCVER=3" > $TARGET/etc/lunar/local/config
 	cp /etc/lunar/local/.config $TARGET/etc/lunar/local/
 	
 	# moo, more more more!
-	chroot_run lunar set GCCVER 3
 	chroot_run lsh update_plugins
 	
 	# initialize the new machine:



More information about the Lunar-commits mailing list