Active Topics

 


Reply
Thread Tools
Posts: 12 | Thanked: 10 times | Joined on Dec 2010
#1
Dear friends,

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.
 

The Following 2 Users Say Thank You to sebas For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#2
I'm not sure if it will help, but there is a FOSS program "RestInPeace" in repositories, that enables alarm when device registers with pre-defined tower (which implies checking for new registrations). You could try inspecting its source code for what you need.

/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
 

The Following User Says Thank You to Estel For This Useful Post:
Reply

Tags
cellmo, event, phone, upstart


 
Forum Jump


All times are GMT. The time now is 13:37.