[Optimus One, P500 Android Development] Bytecode:
When i run it from Linux,it says nothing. When i run it from Phone,it says:

sh .Tweaks.sh: /system/bin/sh: bad interpreter : Permission denied

What can i do? BTW I Corrected some errors,here's the script:

#! /system/bin/sh

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

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

I'm going crazy,what can i do?