[haiku-bugs] Re: [Haiku] #8945: Make ReadOnlyBootPrompt show up also on writable devices if no locale settings are found

  • From: "dsjonny" <trac@xxxxxxxxxxxx>
  • Date: Mon, 08 Oct 2012 08:15:21 -0000

#8945: Make ReadOnlyBootPrompt show up also on writable devices if no locale
settings are found
-----------------------------------------------+---------------------------
   Reporter:  dsjonny                          |      Owner:  stippi
       Type:  enhancement                      |     Status:  new
   Priority:  normal                           |  Milestone:  R1
  Component:  Applications/ReadOnlyBootPrompt  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:
Has a Patch:  0                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by dsjonny):

 I have just inserted some lines:

 The original:
 {{{
         if [ "$isReadOnly" = "yes" ]; then
             # Create Installer link (using the write overlay)
             ln -sf /boot/system/apps/Installer
 /boot/home/Desktop/Installer

             /bin/ReadOnlyBootPrompt
             if [ $? -eq 0 ]; then
                 launchscript $SCRIPTS/Bootscript.cd
                 exit 0 # and return
             fi
         fi
 }}}

 The new (start at line 114):
 {{{
         if [ "$isReadOnly" = "yes" ]; then
             # Create Installer link (using the write overlay)
             ln -sf /boot/system/apps/Installer
 /boot/home/Desktop/Installer

             /bin/ReadOnlyBootPrompt
             if [ $? -eq 0 ]; then
                 launchscript $SCRIPTS/Bootscript.cd
                 exit 0 # and return
             fi
         else
             if [ ! -f "/boot/home/config/settings/Locale settings" ]; then
                 ln -sf /boot/system/apps/Installer
 /boot/home/Desktop/Installer

                 /bin/ReadOnlyBootPrompt
                 if [ $? -eq 0 ]; then
                     launchscript $SCRIPTS/Bootscript.cd
                     exit 0 # and return
                 fi
             fi
         fi
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8945#comment:12>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: