[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, 10 Sep 2012 09:29:58 -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:  low                              |  Milestone:  R1
  Component:  Applications/ReadOnlyBootPrompt  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:
Has a Patch:  0                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by dsjonny):

 My example:

 {{{
 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
                         exit 0
                 fi
         fi
 fi
 }}}

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

Other related posts: