Gag. What the heck is that script doing in 1575 lines of code???
This is really a two liner:

Code:
#!/system/bin/sh
mount /dev/mmcblk1p2 /data


Maybe save the original script and replace it with the above two lines?

EDIT: Wait: not sure about the exact path.
The script uses _mount for everything, whereas the standard (Linux) command is mount (no underscore). Get it wrong, and your phone might not boot.

Researching..