[Optimus One, P500 Android Development] Bytecode:
Ok,i rewrited again script but still nothing happens when i run it. Here's what i get:

export PATH=/data/local/bin:$PATH
sh-3.2$ su
sh-3.2# cd /system/bin
sh-3.2# chmod 755 TweaksV2.sh
sh-3.2# ./Tweaks.sh
sh-3.2#

You see? When i run it nothing happens.

So,here's the new script:

#! /system/bin/sh

##########################################################################
# openOptimus tweaks v2 beta 3 #
# Script created by ciaox,only for openOptimus. #
##########################################################################

reboot(){
echo Phone is rebooting.. applying changes.
reboot
}

heap48(){
setprop dalvik.vm.heapsize=48m
echo Now Heapsize is 48m.
}

heap32(){
setprop dalvik.vm.heapsize=32m
echo Now Heapsize is 32m.
}

heap24(){
setprop dalvik.vm.heapsize=24m
echo Now Heapsize is 24m.
}

heapsize(){
echo *********************************************************
echo * Heap Size changer *
echo *********************************************************
echo Please choose an option:
echo 1.Raise Heapsize to 48m
echo 2.Decrease Heapsize to 32m
echo 3.Decrease Heapsize to 24m
read heap48
read heap32
read heap24

if test "$heap48" == "1"
then heap48
fi

if test "$heap32" == "2"
then heap32
fi

if test "$heap24" == "3"
then heap24
fi
}

exit(){
echo Goodbye! And hope you will enjoy openOptimus.
exit
}

hwon(){
setprop debug.sf.hw=1
echo Hardware acceleration enabled.
}

hwoff(){
setprop debug.sf.hw=0
echo Hardware acceleration disabled.
}

sfon(){
setprop media.stagefright.enable-player=true
setprop media.stagefright.enable-meta=true
setprop media.stagefright.enable-scan=true
setprop media.stagefright.enable-http=true
echo Stagefright player enabled.
}

sfoff(){
setprop media.stagefright.enable-player=false
setprop media.stagefright.enable-meta=false
setprop media.stagefright.enable-scan=false
setprop media.stagefright.enable-http=false
echo Stagefright player disabled.
}

megatron(){
cp /sdcard/openOptimus_resources/Megatron/bootanimation.zip /data/local
echo Boot animation copied.
}

particles(){
cp /sdcard/openOptimus_resources/Particles/bootanimation.zip /data/local
echo Boot animation copied.
}

cyan7(){
cp /sdcard/openOptimus_resources/CM7/bootanimation.zip /data/local
echo Boot animation copied.
}

coin(){
cp /sdcard/openOptimus_resources/Coin/bootanimation.zip /data/local
echo Boot animation copied.
}

boot(){
echo *********************************************************
echo * Boot animation changer *
echo *********************************************************
echo Please choose one:
echo 1.Megatron boot animation
echo 2.Android particles
echo 3.CyanogenMod 7
echo 4.Coin
read megatron
read particles
read cyan7
read coin

if test "$megatron" == "1"
then megatron
fi

if test "$particles" == "2"
then particles
fi

if test "$cyan7" == "3"
then cyan7
fi

if test "$coin" == "4"
then coin
fi
}

tx(){
iwconfig wlan0
}

sf(){
echo *********************************************************
echo *stagefright player enabler/disabler *
echo *********************************************************

echo Please choose an option:
echo 1.Enable Stagefright player
echo 2.Disable stagefright player
read sfon
read sfoff

if test "$sfon" == "1"
then sfon
fi

if test "$sfoff" == "2"
then sfoff
fi
}

sf(){
echo *********************************************************
echo * Hardware acceleration enabler/disabler *
echo *********************************************************
echo
echo Please choose an option:
echo 1.Enable Hardware acceleration
echo 2.Disable Hardware acceleration
read hwon
read hwoff

if test "$hwon" == "1"
then hwon
fi

if test "$hwoff" == "2"
then hwoff
fi
}

main_menu(){
echo *********************************************************
echo * Welcome to openOptimus modding script! *
echo *********************************************************

echo Choose an option:
echo 1.Change boot animation
echo 2.Disable/enable Stagefright player
echo 3.Enable/disable Hardware acceleration
echo 4.Check Wi-Fi Tx-Power,run only with Wifi On.
echo 5.Exit
echo 6.Reboot

read boot
read sf
read hw
read tx
read exit
read reboot

if test "$boot" == "1"
then boot
fi

if test "$sf" == "2"
then sf
fi

if test "$hw" == "3"
then hw
fi

if test "$tx" == "4"
then tx
fi

if test "$exit" == "5"
then exit
fi

if test "$reboot" == "6"
then reboot
fi
}

I can't understand. If anyone want to try it i attached a zip with my script inside.