diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2016-11-01 17:04:26 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2016-11-01 17:09:07 +0100 |
| commit | d492f25c54b4134fd6632156efee07670ab4004f (patch) | |
| tree | 318919b264876a3906d15ecd8781ad0a1e15b3fb /utils/nwztools/scripts/exec_file.sh | |
| parent | b045e4da34165a878c7acc9a82e76b447fe992a7 (diff) | |
| download | rockbox-d492f25c54b4134fd6632156efee07670ab4004f.zip rockbox-d492f25c54b4134fd6632156efee07670ab4004f.tar.gz rockbox-d492f25c54b4134fd6632156efee07670ab4004f.tar.bz2 rockbox-d492f25c54b4134fd6632156efee07670ab4004f.tar.xz | |
nwztools: add preliminary dualboot and dualboot install script
At the moment, the script install_duaboot does the following:
- rename SpiderApp to SpiderApp.of (unless it already exists)
- install payload as SpiderApp
- fixes permissions
Since SpiderApp is the main app, it will execute instead of the OF.
The current dualboot code (dualboot.c) is still a preliminary but the current
version displays an "all tools" menu to choose for. When exitting the menu
using BACK, it will run the OF.
With the modifications made by the install script, it should not be possible
to break the device. In the worst case scenario, the dualboot code crashes
and it restarted by the sysmgrd, or hangs. A safe way to recover is to plug
the USB cable and reset the device: the system manager will then start the
USB app and one can reflash the device if necessary.
Change-Id: Id9edab0347538ad2a8651a28aea7fd083feaa626
Diffstat (limited to 'utils/nwztools/scripts/exec_file.sh')
| -rw-r--r-- | utils/nwztools/scripts/exec_file.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/nwztools/scripts/exec_file.sh b/utils/nwztools/scripts/exec_file.sh index a624e4d..b005156 100644 --- a/utils/nwztools/scripts/exec_file.sh +++ b/utils/nwztools/scripts/exec_file.sh @@ -20,7 +20,7 @@ CONTENTS_PART=`mount | grep contents | awk '{ print $1 }'` lcdmsg -c -f /usr/local/bin/font_08x12.bmp -l 0,3 "Contents partition:\n$CONTENTS_PART" -# 2) We need to remount the contents partition in read-write mode be able to +# We need to remount the contents partition in read-write mode be able to # write something on it lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,6 "Remount $CONTENTS rw" if ! mount -o remount,rw $CONTENTS_PART $CONTENTS @@ -55,7 +55,7 @@ fi lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,7 "Running file..." /tmp/exec >$CONTENTS/exec.txt 2>&1 -# 4) Success screen +# Success screen lcdmsg -f /usr/local/bin/font_08x12.bmp -l 0,15 "Rebooting in 3 seconds." sleep 3 sync |