1
0
Fork 0
forked from len0rd/rockbox

ypr0 - ypr1: dynamically move rockbox executable

This trivial patch wants to exploit /tmp filesystem to place
Rockbox executable. Why that? It will be then possible to
easily unlock & umount the storage partition, in order to provide
Rockbox itself a mean for RAW storage access. In turn, this will
allow a Rockbox-handled USB Mass Storage support, as well as other
goodies (storage info is one I can think of).

It takes way less than a second so it doesn't hurt boot time.
Moreover, YPR0/YPR1 targets have plenty (64MB) of RAM, so
the humble half meg executable won't hurt at all.

Change-Id: Ibc9d9a40712e924c8e19cfd7c62189b182f0401a
This commit is contained in:
Lorenzo Miori 2014-12-31 12:04:44 +01:00 committed by Solomon Peachy
parent 3016d74c5a
commit 2dd6633d71

View file

@ -64,5 +64,12 @@ mount --bind /mnt/media0/.rockbox /.rockbox
mount --bind /mnt/media0/Playlists /Playlists mount --bind /mnt/media0/Playlists /Playlists
MAINFILE="/mnt/media0/.rockbox/rockbox" MAINFILE="/mnt/media0/.rockbox/rockbox"
# Attempt to copy the executable in the /tmp directory
# This allows an easier USB Mass Storage Mode to be achieved (file handles)
cp $MAINFILE /tmp/rockbox
if [ $? -eq 0 ]
then
MAINFILE="/tmp/rockbox"
fi
MAINFILE_ARGV='' MAINFILE_ARGV=''
MAINFILE_REDIRECT='>/dev/null 2>&1' MAINFILE_REDIRECT='>/dev/null 2>&1'