#!/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 "Welcome to innoHack..." >/testfifo echo "Innotab 3 UK V43.30621" >/testfifo echo "By SpiffyHacks.com - Deak Phreak" >/testfifo echo "" >/testfifo sleep 2 ##backup the current system partition if grep -Fq "sdcarda6" /tmp/mounts then if [ ! -f "/vp_mnt/sd/sdcarda6_backup.bin" ]; then echo "backup existing sdcarda6" >/testfifo dd if=/dev/sdcarda6 of=/vp_mnt/sd/sdcarda6_backup.bin >/testfifo echo "Finished backup existing sdcarda6" >/testfifo fi fi if grep -Fq "sdcarda7" /tmp/mounts then if [ ! -f "/vp_mnt/sd/sdcarda7_backup.bin" ]; then echo "backup existing sdcarda7" >/testfifo dd if=/dev/sdcarda7 of=/vp_mnt/sd/sdcarda7_backup.bin >/testfifo echo "Finished backup existing sdcarda7" >/testfifo fi fi echo "" >/testfifo if [ -f "/system/bin/vtech/RunApp~" ]; then echo "This Innotab has already been patched.." >/testfifo echo "Innotab will power off in 10 seconds..." >/testfifo sleep 10 reboot else if grep -Fq "2014-01-10 11:29:38" /system/lib/vtech/build_signature.system then # code if found if [ -f "/vp_mnt/sd/I3_UK_43.30621-mod.bin" ]; then echo "Destroying fastboot" >/testfifo app_destroyer.x -f echo "Writing hacked fw.. DONT SHUT OFF DEVICE" >/testfifo #find out which sdcardaX we are currently using.. if grep -Fq "sdcarda6" /tmp/mounts then dd if=/vp_mnt/sd/I3_UK_43.30621-mod.bin of=/dev/sdcarda6 >/testfifo fi if grep -Fq "sdcarda7" /tmp/mounts then dd if=/vp_mnt/sd/I3_UK_43.30621-mod.bin of=/dev/sdcarda7 >/testfifo fi echo "" >/testfifo echo "** PLEASE NOTE - THE INNOTAB WILL TAKE LONGER TO BOOT UP **">/testfifo echo "** AND WILL HAVE A BLANK SCREEN FOR ABOUT 15 SECONDS **">/testfifo echo "** THIS IS NORMAL - DONT PANIC!!!! **">/testfifo echo "" echo "Innotab will power off in 10 seconds..." >/testfifo else echo "** ERROR - Cant find modified firmware file">/testfifo echo "** Aborting... **">/testfifo echo "Innotab will power off in 10 seconds..." >/testfifo fi sleep 10 reboot else echo "Sorry this patch is for not for your innotab version." >/testfifo echo "Innotab will power off in 10 seconds..." >/testfifo sleep 10 reboot fi fi