Symlink Installer to the Desktop only on read-only medium.
Fixes part of #9399
This commit is contained in:
@@ -119,13 +119,13 @@ 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.
|
||||||
freshInstallIndicator=/boot/common/settings/fresh_install
|
freshInstallIndicator=/boot/common/settings/fresh_install
|
||||||
if [ "$isReadOnly" = "yes" -o -e $freshInstallIndicator ]; then
|
if [ "$isReadOnly" = "yes" -o -e $freshInstallIndicator ]; then
|
||||||
# Create Installer link (using the write overlay)
|
|
||||||
ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
|
|
||||||
|
|
||||||
/bin/ReadOnlyBootPrompt
|
/bin/ReadOnlyBootPrompt
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
launchscript $SCRIPTS/Bootscript.cd
|
launchscript $SCRIPTS/Bootscript.cd
|
||||||
exit 0 # and return
|
exit 0 # and return
|
||||||
|
elif [ "$isReadOnly" = "yes" ] ; then
|
||||||
|
# Create Installer link (using the write overlay)
|
||||||
|
ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user