* Added links to the Installer on the Desktop, and the Deskbar's Applications

list when booting from CD. Both are removed from the target in the
  InstallerFinishScript. This closes ticket #4342.
* Make Installer start in safemode as well.
* Are there any objections to always have the Installer link in the Deskbar?
  I see no real reason to leave it out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32686 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-08-26 08:58:26 +00:00
parent 89294b5084
commit 49473fc52e
3 changed files with 20 additions and 19 deletions
+4
View File
@@ -102,6 +102,10 @@ fi
# Now ask the user if he wants to run the Installer or continue to the Desktop. # Now ask the user if he wants to run the Installer or continue to the Desktop.
if [ "$isReadOnly" = "yes" ]; then if [ "$isReadOnly" = "yes" ]; then
# Create Installer links (using the write overlay)
ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
ln -sf /boot/system/apps/Installer /boot/home/config/be/Applications/Installer
/bin/alert "Do you wish to run the Installer or continue booting to the Desktop?" "Installer" "Desktop" /bin/alert "Do you wish to run the Installer or continue booting to the Desktop?" "Installer" "Desktop"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
launchscript $SCRIPTS/Bootscript.cd launchscript $SCRIPTS/Bootscript.cd
+6 -12
View File
@@ -45,19 +45,13 @@ runprog() {
## ##
# Launch Terminal or consoled depending on $SAFEMODE # Launch Installer
if [ "$SAFEMODE" != "yes" ]; then
cd /boot/home cd /boot/home
if [ -x /boot/system/apps/Installer ]; then if [ -x /boot/system/apps/Installer ]; then
/boot/system/apps/Installer /boot/system/apps/Installer
#/boot/system/apps/Terminal -x /boot/system/apps/Installer
else
/boot/system/apps/Terminal
fi
#launch system/apps/Terminal
else else
launch system/bin/consoled /boot/system/apps/Terminal
exit 0 # return so we don't eject and reboot
fi fi
# sync disks # sync disks
+10 -7
View File
@@ -1,19 +1,22 @@
#!/bin/sh #!/bin/sh
## The installer finish script. ## The installer finish script.
mount=$1 target=$1
if [ -z "$mount" ]; then if [ -z "$target" ]; then
echo "Usage: $0 volume" echo "Usage: $0 <volume>"
exit 1 exit 1
fi fi
if [ ! -d "$mount" ]; then if [ ! -d "$target" ]; then
echo "$mount isn't mounted" echo "$target isn't mounted"
exit 1 exit 1
fi fi
mkdir -p "$mount/var/tmp" mkdir -p "$target/var/tmp"
makebootable "$mount" # remove Installer links
rm -f $target/home/Desktop/Installer
rm -f $target/home/config/be/Applications/Installer
makebootable "$target"