That's great.
Thanks man. I was searching something like this only.
Won't it be more helpful if the debug log could be in the card (or in the runsrc folder itself).
RunScript v1.0 - by intermario_gr
--- For those of you who don't have an autorun-capable firmware installed on their phone ---
Here is my solution...
This is a PKG application of mine that's meant to execute a specific script when your phone starts up. It is supposed to be used in conjunction with yan0's startup manager (thread link below). Yan0's app only makes PKG applications run at boot-time. If you use it with my app, you're able to execute script code as well (just as you would from the console).
http://www.motorolafans.com/forums/a...tml#post160639
On with the instructions...
- Install on your phone, preferably on your MMC
- Install yan0's startup manager
- Locate the autorun script (autorun.lin) in the folder where RunScript was deployed
- Add script code to this file using a text editor that DOESN'T insert its own special characters (definitely not Notepad!)
- Run yan0's startup manager and check RunScript along with any other PKG applications that you might want to get started when your phone boots.
You're ready! Now each time your phone boots, both selected apps and script code will be executed. No need to reflash your phone to a special autorun-enabled firmware!
NOTES:
- You can edit the script file whenever you wish.
- Try PSPad editor or Crimson Editor to edit the script. If you want to edit it straight from the phone, try this one --> http://www.motorolafans.com/forums/a...placement.html.
- Each time RunScript is executed, it creates a debug log file in your phone's memory (/tmp/runscr.log). If you're unsure if it actually RUNS the autorun script, first delete the file mentioned above, run RunScript and check again if the file is present.
This is my very first attempt to make an application.
It is unbelievably simple but - to me - unbelievably useful.
Please hit the "Thank you!" button if you feel the same way
Many thanks to yan0 for the startup manager he's created.. Without him, I would've never created this!
Last edited by intermario_gr; 09-30-2008 at 02:22 PM. Reason: Uploaded an updated version that fixes an issue
That's great.
Thanks man. I was searching something like this only.
Won't it be more helpful if the debug log could be in the card (or in the runsrc folder itself).
No problem, mate, no trouble at all. Here's a slightly modified version that creates the logfile in the memory card, in the folder where RunScript was installed (/mmc/mmca1/.system/QTDownLoad/RunScript). Uninstall previous version and try this one. Let me know should you have any trouble!
Last edited by intermario_gr; 09-26-2008 at 08:08 PM.
Wow, this is super! gna test it out, some hints on scripts i could run to maybe give me a refreshed idea? thanks man!
I wish I could use it but currently I'm unable to start Yan0's start program. I don't know what's the problem.
Personally, I use it in order to make FoxAlarm (this alarm rocks!) function correctly. You have to execute a mount command every time you power on your phone so that FoxAlarm integrates properly with the phone's default alarm function. That's only just for now, I'm sure it will come in handy later on. If not required by other applications, some file works (copying, uncompressing etc) can be done easily this way without needing a special PKG app to do the job. PS. I'd appreciate it if you thanked me by pressing the "Thank you!" button too!
Make sure you don't change a thing once you install it (including the app's name)! That's right, I'm only mentioning it because for some strange reason, if I change its original name (which strangely appears as 4 squares on my phone) to anything else, it won't work! Other than that, I can only imagine it's your firmware's fault or it's the super utility you're using (I use SmartAsst).
Last edited by intermario_gr; 09-27-2008 at 05:46 PM.
I do not worked
I would click the "thank you" button, but I can't find it - I'm using my cell's browser. Oh yes, that yanO's startup is strange - I also tried changing the name a few times and it then refuses to run.
@intermario: Yes. It worked after installing it thru SmartAsst.
And your script also ran.
Thanks buddy.