Active Topics

 


Reply
Thread Tools
Posts: 21 | Thanked: 5 times | Joined on Jan 2010 @ Poland, Austria
#1
How do I try to run script automatically when phone switch on ?
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#2
maemo uses upstart for scripts running after boot.
For examples take a look at /etc/event.d/ scripts.

nicolai
 

The Following 4 Users Say Thank You to nicolai For This Useful Post:
Posts: 21 | Thanked: 5 times | Joined on Jan 2010 @ Poland, Austria
#3
A strange way to run, does not resemble even bash, but if someone like me had problems even clearly described on http://upstart.ubuntu.com/getting-started.html
 
nowave7's Avatar
Posts: 245 | Thanked: 62 times | Joined on Jan 2009 @ Bad Homburg, Deutschland
#4
Or you could do it the old fashioned way, by putting the script you want to run in /etc/init.d/, and the creating a link to it in /etc/rc2.d (default runlevel is 2, if I'm not mistaken).
__________________
Save the whales, feed the hungry, free the mallocs!
 
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#5
Originally Posted by nowave7 View Post
Or you could do it the old fashioned way, by putting the script you want to run in /etc/init.d/, and the creating a link to it in /etc/rc2.d (default runlevel is 2, if I'm not mistaken).
This won't work on the N900. Maemo5 doesn't use init, it uses upstart. So you have to make a script in /etc/event.d using the upstart start/stop script syntax.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#6
Originally Posted by cddiede View Post
This won't work on the N900. Maemo5 doesn't use init, it uses upstart. So you have to make a script in /etc/event.d using the upstart start/stop script syntax.
This will work on the n900 as upstarts emulates init. There are already many files in /etc/rc?.d

nicolai
 
cddiede's Avatar
Posts: 1,034 | Thanked: 784 times | Joined on Dec 2007 @ Annapolis, MD
#7
Originally Posted by nicolai View Post
This will work on the n900 as upstarts emulates init. There are already many files in /etc/rc?.d

nicolai
Believe me, I've tried it and it never worked. See this thread:

http://talk.maemo.org/showthread.php?t=35567
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
Originally Posted by nicolai View Post
This will work on the n900 as upstarts emulates init. There are already many files in /etc/rc?.d
...which are called by files in /etc/event.d

I know Ubuntu has the upstart-compat-sysv package but Maemo doesn't have it. E.g. /etc/event.d/rc2 doesn't exist on my N900.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#9
Originally Posted by cddiede View Post
Believe me, I've tried it and it never worked. See this thread:

http://talk.maemo.org/showthread.php?t=35567
Originally Posted by qwerty12 View Post
...which are called by files in /etc/event.d

I know Ubuntu has the upstart-compat-sysv package but Maemo doesn't have it. E.g. /etc/event.d/rc2 doesn't exist on my N900.
my fault, you are right.

nicolai
 
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#10
reading over this and trying a few things I still can't get this to do anything. I don't know Bumpkus about scripts!

I'm trying to start 3 appz everytime my N900 starts

Root xterm
Phone
Contacts

Can anybody give me some pointers.

I made a simple one line startup with the exec line for my root term and nothing started on boot. Placed it in /etc/event.d
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:17.