[lokisetup] [PATCH] fix exit code 3 handling

Ludwig Nussel ludwig.nussel at suse.de
Tue Apr 14 10:21:10 EDT 2009


exit code 3 is used when the installation is aborted, e.g. due to wrong
CD-ROM. setup.sh should not try to run the curses version in this case.
---
 image/setup.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/image/setup.sh b/image/setup.sh
index 39dd35d..58f9906 100755
--- a/image/setup.sh
+++ b/image/setup.sh
@@ -295,13 +295,13 @@ fi
 # Try to run the setup program - first look for a GTK2 binary
 try_run setup.gtk2 $args $* 2> /dev/null
 status=$?
-if [ $status -ne 0 ] && [ $status -ne 2 ] ; then 
+if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then
 	try_run setup.gtk $args $* 
 	status=$?
-	if [ $status -ne 0 ] && [ $status -ne 2 ] ; then  # setup.gtk couldn't connect to X11 server - ignore
+	if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then  # setup.gtk couldn't connect to X11 server - ignore
 		try_run setup $args $*
 		status=$?
-		if [ $status -ne 0 ] && [ $status -ne 2 ]; then
+		if [ $status -ne 0 ] && [ $status -ne 2 ] && [ $status -ne 3 ]; then
 			echo "The setup program seems to have failed on $arch/$libc"
 			echo
 			echo $FATAL_ERROR
-- 
1.6.2.1



More information about the lokisetup mailing list