Fix flipped logic for handling memdiskfind
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 13 Jan 2020 09:53:19 +0000 (10:53 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 13 Jan 2020 09:53:19 +0000 (10:53 +0100)
Commit 07d13d4a81e8e3ea3f7cff63a6528efd5a46b1e7 accidentally flipped
the logic for handling memdiskfind, causing erroneous messages and a
four second boot delay.

Flip the logic again to correct it.

Thanks to Marcel Partap for reporting it.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
components/9990-main.sh

index 4a22909..3fbe9bc 100755 (executable)
@@ -52,7 +52,7 @@ Live ()
                else
                        if [ -x /usr/bin/memdiskfind ]
                        then
-                               if MEMDISK=$(/usr/bin/memdiskfind)
+                               if MEMDISK=$(/usr/bin/memdiskfind)
                                then
                                        # We found a memdisk, set up phram
                                        # Sometimes "modprobe phram" can not successfully create /dev/mtd0.