[Optimus One, P500 Android Development] Bytecode:
Ok i rewrited script again:

#!/system/bin/bash

##########################################################################
# openOptimus tweaks v2 beta 2 #
# Script created by ciaox. only for openOptimus ROM. #
# Copyright (c) ciaox 2011. #
##########################################################################

exit(){
echo Goodbye! And hope u will enjoy openOptimus (:
fi
}

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

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

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.
fi
}

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.
fi
}

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(){
echo You need to run this only if you have Wi-Fi on!
iwconfig wlan0
fi
}

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
echo 5.Exit

read boot
read sf
read hw
read tx
read exit

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
}