10-23-2015, 05:51 AM
(10-23-2015, 03:57 AM)is0-mick Wrote: I think that looks correct, but as I said it's been a couple of years since I last looked at this stuff.
Just create a text file with the above in (don't use notepad as it won't work) use a decent text editor, and it needs to be saved in linux format. (not CR/LF endings).
Create a folder on the sd card of LLN/Games/backup and place the file in there, with the file the name of _Run
Create an entry in the innotab database pointing to this FOLDER (it will find the _Run automatically), give it a name, icon etc.
Click the created icon in the innotab's game menu.
It should then do whatever commands are in the script.
For debug purposes you can add this to your script (it will print stuff on the screen so you can see if its running
Code:killall -9 appswitch
killall -9 desktopManager
killall -9 flashplayer
mkfifo /testfifo
lcdterm -daemon /testfifo
echo "Running Our script.." >/testfifo
#now do whatever (such as your copy)
echo "Copy completed" >/testfifo
or another way is to download any innotab firmware patcher.. and just modify the my_run file in the root of the sd card to suit your needs.
Mick
Here is the script :
______________________________________
#!/bin/sh
echo "this is mytest.sh"
sleep 10
echo "slept"
killall -9 appswitch
killall -9 desktopManager
killall -9 flashplayer
mount >/tmp/mounts
mkfifo /testfifo
lcdterm -daemon /testfifo
#ps -A >/vp_mnt/sd/ps.txt
echo "Copy my games..." >/testfifo
echo "" >/testfifo
sleep 2
mkdir /vp_mnt/game >/testfifo
mkdir /vp_mnt/sdcard/decrypted >/testfifo
lmaid /sdcard/jeux.ita /dev/loop7 /vp_mnt/game >/testfifo
cp -aR /vp_mnt/Game/ /vp_mnt/sdcard/decrypted >/testfifo
echo "Copy completed" >/testfifo
____________________________________________________
and here is the result on the Storio screen :
![[Image: 2015-10-23%2014.44.28%20%5B1024x768%5D.jpg]](https://dl.dropboxusercontent.com/u/50690714/2015-10-23%2014.44.28%20%5B1024x768%5D.jpg)
![[Image: 2015-10-23%2014.44.28%20%5B1024x768%5D.jpg]](https://dl.dropboxusercontent.com/u/50690714/2015-10-23%2014.44.28%20%5B1024x768%5D.jpg)