4. How to autorun programs
on any firmware
- Install MCleaner, if you don't have it already
- Go to /mmc/mmca1/.system/QTDownLoad/MCleaner
- Kill MCleaner process (kill -9 MCleaner) if it's running
- Rename MCleaner to MCleaner.bin
- Create new file called MCleaner and put the following:
Code:
#!/bin/bash
. /home/native/.profile
myfile=`basename $0`
mypath=`echo $0 | sed -e 's/''$//g'`
export TZ=GMT-08:00
export QTDIR=/usr/lib/ezx
export LD_LIBRARY_PATH=/lib:/diska/.usr/lib:
export EZX_RES_FONT_PATH=/usr/language/fonts
EXEC="start-stop-daemon --start --exec"
# You can modify the path to suit your needs!
/mmc/mmca1/autorun.sh
cd ""
exec ./MCleaner.bin $*
- Create new file called autorun.sh and put in /mmc/mmca1 (or the directory of your choice)
- In the autorun.sh write the commands you want to be executed upon startup
- Make sure MCleaner has "Auto Load" enabled
- Save everything and reboot your phone.