[Galaxy Note 10.1 Android Development] TweakerL:
Hmmm... there's a few different ways we can go about this, but one thing to definitely keep in mind is, I'm not sure running the scripts with Rom Toolbox or something similar works...

Now, as for the permission error, the first thing I would ensure is that the script itself has the right permissions. It's not enough to have su, the file itself has to have permission to execute. I suggest using X-Plore File Manager (only one that hasn't failed for me one way or another), navigate to each file, long press and go to set permissions and make sure it is set to 755, it should look like what I have in the second post. Also, it's very important that the init.a and init.d folders also have permissions set to 755.

If those two permissions are set ok, then it can be an issue with /system failing to get mounted to RW. IF that's the case, I suggest you use X-Plore to manually copy the files where they need to be. I don't know how the hell X-Plore works, but if I try to write to /system any other way, /system gets locked up until I reboot.

As for A2SD/options/vars not being found, there's two possible things there too. That file will not be found until 01a2sd is successfully run, and it cannot be created if the folder doesn't exist. the full path to that file should be either

/sdcard/Tweaked.Scripts/A2SD/options

or

/data/media/Tweaked.Scripts/A2SD/options

Note that capitalization definitely matters in this case.

No matter what, you don't want to comment out that line, because the file vars, which is created by 01a2sd, contains all the necessary variables for 01earlymounts to mount things properly. To be honest, one of the reason it took me as long as it did to get this working was because I was trying to make the files as condensed as possible, and I'm almost sure commenting anything out will most likely cause it to fail. But long story short, it's ok for you to get that error IF you're running it for the first time. If you want to avoid the error (I guess I'll add it to the next zip) is change the line:

. $A2SD_OPTIONS/vars

with

if [ -f $A2SD_OPTIONS/vars ]
then
. $A2SD_OPTIONS/vars
fi

Which leads to your next quesiton:

[ something ] = test if something is true

[ -f something ] = test if THE FILE something exists

[ -f something -o -f someotherthing ] = test if THE FILE something OR THE FILE someotherthing exist

[ ! -f something -o ! -f someotherthing ] = test IF THE FILE something DOESN'T EXIST OR THE FILE someotherthing DOESN'T EXIST

-f can also be replaced with -d for directory, -l for symlink, -e for anything at all (iirc) among some other things

-o can also be -a for AND instead of OR

The line

if [ ! -f /system/bin/debuggerd -o ! -f /system/bin/sysinit -o ! -f /system/etc/init.a/01earlymounts -o ! -f /system/etc/init.d/01a2sd -o ! -f $SDCARD/Tweaked.Scripts/A2SD/options/USER_OPTIONS ]

Basically says, If any of these files are not where they need to be then [exit] (in the rest of the code)

Now, I can tell you this much, if the install script is exiting, then I guarantee either the files aren't where they need to be, or they don't have the permissions they need to have, although I'm pretty sure that I set the script to not fail just for permissions.

One thing we can try if you're willing, is the teamviewer for android, which works to connect to android. Just search for teamviewer in the market, it's the cone with QS in the icon. I can connect to your tab and you can show me what you have and I can see what's different from what I have.

That's pretty interesting actually. What version of busybox are you using? I'm using 1.20.2

Also, I'm not sure if maybe I got a typo on the uploaded file, but it needs to have a space after ( as in

TWEAKED=$( busybox find...

Without the space the variable won't get defined right.