|
2014-12-26
, 04:15
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#2
|
The Following User Says Thank You to Estel For This Useful Post: | ||
Tags |
cellmo, event, phone, upstart |
|
I am trying to write a script which must run whenever there is a new cell tower registration.
I need to use upstart to run my script. Then I need to write a configuration file in /etc/event.d/ folder. So that the question is:
What is the event I must specify in my config file? I think that I must choose among these events:
cellmo poweron starting
cellmo poweron ok --no-wait
cellmo poweroff starting
cellmo poweroff ok --no-wait
cellmo reset
cellmo sim missing
cellmo sim blocked
cellmo sim code-required
cellmo sim mode als2
cellmo sim mode ok
cellmo sim ready
But I have no idea about the correct answer.
Maybe should I add this line of code?:
start on cellmo reset
Or should it be this one?:
start on cellmo sim ready
Please remember that I need to run my script whenever a new cell tower is successfully registered.
Thank you for your answers.