Ticket #8945: 0001-Start-the-ReadOnlyBootPrompt-when-boot-from-USB-driv.patch

File 0001-Start-the-ReadOnlyBootPrompt-when-boot-from-USB-driv.patch, 1.6 KB (added by dsjonny, 11 years ago)
  • data/system/boot/Bootscript

    From 50225a4335779b43084a37fa1cf4d220f9a9ecbd Mon Sep 17 00:00:00 2001
    From: Yourself <user@shredder.d-rendszer.hu>
    Date: Thu, 29 Nov 2012 10:43:52 +0100
    Subject: [PATCH] Start the ReadOnlyBootPrompt when boot from USB drive too if
     there is no Locale settings present.
    
    ---
     data/system/boot/Bootscript |   27 ++++++++++++++++++---------
     1 file changed, 18 insertions(+), 9 deletions(-)
    
    diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript
    index 3a52cb2..8bea49d 100644
    a b fi  
    118118
    119119# Now ask the user if he wants to run the Installer or continue to the Desktop.
    120120if [ "$isReadOnly" = "yes" ]; then
    121     # Create Installer link (using the write overlay)
    122     ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
    123 
    124     /bin/ReadOnlyBootPrompt
    125     if [ $? -eq 0 ]; then
    126         launchscript $SCRIPTS/Bootscript.cd
    127         exit 0 # and return
    128     fi
     121    # Create Installer link (using the write overlay)
     122    ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
     123
     124    /bin/ReadOnlyBootPrompt
     125    if [ $? -eq 0 ]; then
     126        launchscript $SCRIPTS/Bootscript.cd
     127        exit 0 # and return
     128    fi
     129else
     130    if [ ! -f "/boot/home/config/settings/Locale settings" ]; then
     131        ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
     132
     133        /bin/ReadOnlyBootPrompt
     134        if [ $? -eq 0 ]; then
     135            launchscript $SCRIPTS/Bootscript.cd
     136            exit 0 # and return
     137        fi
     138    fi
    129139fi
    130140
    131 
    132141if [ -e /etc/users ]; then
    133142    # TODO: system/Login needs to be fixed to launch the mount_server!
    134143    launch system/Login