[Asus Transformer TF700] elfaure:
Not following you here _that. You had me do 3 things and I did them. The last run was captured right from the terminal like you suggested - no "strange tools" involved. What "enter" are you talking about?

You instructed me to:

1. Create a script called install-recovery.sh in /system/etc and make it executable containing the following code:

#!/system/bin/sh
/system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d

2. Create the directory /system/etc/init.d and put my startup script autostart.sh in there and make it executable (which I just did after posting the above output - it was not there before posting the output but I still get the same result with the script not running to completion and having to "exit" twice to get back to the $ prompt from the root # prompt)

3. Post the output of the following commands (which I put in a script I wrote called that_script.sh and made it executable)

su
ls -l /etc/install-recovery.sh
cat /etc/install-recovery.sh
ls -ld /etc/init.d
ls -l /etc/init.d
ls -l /system/xbin/busyboxroot

So I believe I did what you asked, only used the terminal, and posted the output. Again I ask, why did the script install-recovery.sh not complete (or did it and I am confused - if so why did the first exit not take me to the $ prompt rather than leave me at the # prompt??) and require an "exit" command to break out back to the prompt? Notice there are two "exits" commanded. The first one breaks out of install-recovery.sh (I think) and the second one breaks out of the root shell back to the $ prompt.

Here is updated output after doing 2 above and after a reboot. My autostart.sh script did not run at boot because there are no browser_cache mountpoints created.

u0_a87@android:/ $ su

root@android:/ # mount | grep tmpfs

tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0

tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0

tmpfs /Removable tmpfs rw,relatime,mode=755,gid=1000 0 0

browser /data/data/com.android.browser tmpfs rw,relatime 0 0

root@android:/ # cd /Removable/MicroSD/Scripts

root@android:/Removable/MicroSD/Scripts # sh ./that_script.sh

root@android:/Removable/MicroSD/Scripts # exit

-rwxrwxrwx root sdcard_rw 90 2013-03-19 18:28 install-recovery.sh

#!/system/bin/sh

/system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.ddrwx------ root root 2013-04-25 06:15 init.d

drwx------ root root 2013-04-21 17:04 Test Scripts

-rwxrwxrwx root root 1614 2013-04-25 06:15 autostart.sh

-rwxrwxr-x root root 1096224 2013-04-16 19:38 busybox

root@android:/Removable/MicroSD/Scripts # cat autostart.sh

#!/system/bin/sh

umount /data/data/com.android.browser/cache;

rm -rf /data/data/com.android.browser/cache/*;

mount -t tmpfs -o size=50m browser_cache /data/data/com.android.browser/cache;

if [ -d /data/data/com.fevdev.nakedbrowser ];

then

umount /data/data/com.fevdev.nakedbrowser/cache;

rm -rf /data/data/com.fevdev.nakedbrowser/cache/*;

mount -t tmpfs -o size=50m naked_cache /data/data/com.fevdev.nakedbrowser/cache;

fi;

if [ -d /data/data/com.android.chrome ];

then

umount /data/data/com.android.chrome/cache;

rm -rf /data/data/com.android.chrome/cache/*;

mount -t tmpfs -o size=50m chrome_cache /data/data/com.android.chrome/cache;

fi;

#if [ -d /data/data/org.mozilla.firefox ];

#then

#umount /data/data/org.mozilla.firefox/cache;

#rm -rf /data/data/org.mozilla.firefox/cache/*;

#mount -t tmpfs -o size=50m firefox_cache /data/data/org.mozilla.firefox/cache;

#fi;

#if [ -d /data/data/org.mozilla.firefox/files/mozilla/*.default/Cache ];

#then

#umount /data/data/org.mozilla.firefox/files/mozilla/*.default/Cache

#rm -rf /data/data/org.mozilla.firefox/files/mozilla/*.default/Cache/*

#mount -t tmpfs -o size=50m firefox_cache /data/data/org.mozilla.firefox/files/mozilla/*.default/Cache

#fi

FIREFOX_CACHE_DIR="$(ls -d /data/data/org.mozilla.firefox/files/mozilla/*.default/Cache 2>/dev/null)"

if [ ! -z "$FIREFOX_CACHE_DIR" ] && [ "$FIREFOX_CACHE_DIR" != "." ] && [ "$FIREFOX_CACHE_DIR" != "/" ] && [ -d $FIREFOX_CACHE_DIR ];

then

umount $FIREFOX_CACHE_DIR

rm -rf $FIREFOX_CACHE_DIR/*

mount -t tmpfs -o size=50m firefox_cache $FIREFOX_CACHE_DIR

fi

unset FIREFOX_CACHE_DIR

root@android:/Removable/MicroSD/Scripts # exit

u0_a87@android:/ $