Re-order some commands so we don't call log_begin_msg without calling log_end_msg.
authorChris Lamb <chris@chris-lamb.co.uk>
Tue, 12 Aug 2008 00:13:25 +0000 (01:13 +0100)
committerChris Lamb <chris@chris-lamb.co.uk>
Tue, 12 Aug 2008 00:13:25 +0000 (01:13 +0100)
Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
scripts/live-bottom/15autologin
scripts/live-bottom/20xconfig

index ae653fd..bb9902e 100755 (executable)
@@ -20,17 +20,17 @@ esac
 
 # live-initramfs header
 
+if [ -n "${NOXAUTOLOGIN}" ]
+then
+       exit 0
+fi
+
 . /scripts/live-functions
 
 log_begin_msg "Setting up automatic login"
 
 # live-initramfs script
 
-if [ -n "${NOXAUTOLOGIN}" ]
-then
-       exit 0
-fi
-
 # chroot needed to handle symlinks correctly
 if chroot /root [ -f /etc/gdm/gdm-cdd.conf ]
 then
index 4a80b21..c06a505 100755 (executable)
@@ -27,8 +27,6 @@ fi
 
 . /scripts/live-functions
 
-log_begin_msg "Configuring X"
-
 # live-initramfs script
 
 if [ "${TERM_TYPE}" = "serial" ]
@@ -48,6 +46,8 @@ then
        exit 0
 fi
 
+log_begin_msg "Configuring X"
+
 locale=en_US.UTF-8
 
 mount -n -o bind /sys /root/sys