![]() |
Phone.Net upstart event
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. |
Re: Phone.Net upstart event
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 |
All times are GMT. The time now is 05:34. |
vBulletin® Version 3.8.8