Autorunning


SiIV

Member
Joined
Dec 9, 2005
Messages
116
Website
Visit site
Hello, I have been trying for a while to autorun both energysaver and gmenu2x.
If someone knows how can you please tell me or post the code please?
 
Hello, I have been trying for a while to autorun both energysaver and gmenu2x.
If someone knows how can you please tell me or post the code please?
Make two scripts, then run them together:
Code:
<energysaver script path> & <gmenu2x script path>

Remove anything that starts gp2xmenu though (i.e. from an energysaver script).

Edit: If that fails, you can always use nohup, although that will write to ./nohup.out and there's no flag not to, so it may not be a good idea.
 
Last edited by a moderator:
Link nohup.out to /dev/null? At least if the file isn't functionally required. Otherwise link it to something in a tmpfs filesystem.
 
Should just point out that you aren't really running them 'together'. The '&' makes the first process run in the background and then allows the second process to run in the foreground.

You can basically do:

process1 &
process2 &
process3 &
process4

etc...

That's all assuming that this thing runs like Unix - I could be completely wrong of course...
 
From another thread I have learned how to do it.
For anyone that wants to load GMenu2x and Energysaver
Make sure that Gmenu2x folder is in root of sd card and setbl from Energysaver is in the root of the sd card also
here is the code
Code:
#!/bin/sh
killall setbl
./setbl 20 30 mplayer MusicPlayer g_file_storage &
cd /mnt/sd/gmenu2x
exec ./gmenu2x
 
Back
Top