ldlinux: Perform auto-boot if NOESCAPE set in config file
authorMatt Fleming <matt.fleming@linux.intel.com>
Mon, 28 Mar 2011 16:47:37 +0000 (17:47 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Fri, 1 Apr 2011 09:44:18 +0000 (10:44 +0100)
The previous logic for detecting when to perform an auto-boot was
incorrect, we should try to auto-boot if NOESCAPE is set in the config
file.

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
com32/elflink/ldlinux/ldlinux.c

index 85066b1..a23b2f3 100644 (file)
@@ -65,7 +65,7 @@ static int ldlinux_main(int argc, char **argv)
        /*
         * Auto boot
         */
-       if (defaultlevel || !noescape) {
+       if (defaultlevel || noescape) {
                if (defaultlevel) {
                        load_kernel();  /* Shouldn't return */
                } else {