[Development] Fwd: Fonera 2.1 firmware : service dyndns
John Crispin
john.crispin at fon.com
Wed Nov 5 20:04:53 UTC 2008
ok, here goes...
fonstated basically takes events as an input
to queue and event do fs -l <EVENT>
fonstated processes 1 event at a time
event map directly to /etc/fonstated/
currently use a shell script, but it will support lua in the final version
next, look in /usr/lib/fonstate/*.so these are all plugins running inside or forked by fonstated (hence several processes)
a fonstated plugin is written in c and can
* use the internal timer apis
* queue evente
* register events
* the watchdog is controlled via "fs -l" without the need for a script in /etc/fonstated
there are 2 special events Online and Offline
these are triggered by fonstate_online.so
so the idea is that do write a plugin, you need
* a uci file (the confgi files used by openwrt, really simple)
* a uvl file (optional) (validation scheme for uci file)
* luci pages - to configure your daemon, app, ...
* fonstated script, that handles how, when, where, ... the plugin does something or not
that was the very quick howto :) more to come when i am ready
John
----- Original Message -----
From: "Steven Leeman" <steven at leeman.be>
To: development at fonosfera.org
Sent: Wednesday, November 5, 2008 6:16:26 PM (GMT+0100) Europe/Berlin
Subject: [Development] Fwd: Fonera 2.1 firmware : service dyndns
Hi,
Could you also tell us more about this Fon State Daemon?
How can we control the times a certain service is run; and what it is running(shellscript outside of the code or is it inside the fon state daemon sourcecode?)
...so we can adapt the script and add checks&other dynamic dns services for instance
---------- Forwarded message ----------
From: John Crispin < john.crispin at fon.com >
Date: Wed, Nov 5, 2008 at 6:09 PM
Subject: Re: Fonera 2.1 firmware : service dyndns
To: Steven Leeman < steven at leeman.be >
Cc: fonera20 at fon.com
you can replace stuff, that is the idea. if the changes are cool, they will make their way into the main tree.
----- Original Message -----
Question:
* Can the community write a plugin to "replace" existing(but limited) functionality? or will it be shown a "services -> Fon Dyndns" AND "plugin -> Community DynDns"; where the latter will work even if the Fonera is NOT connected directly to the internet? (Duality)
Thnx,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://fonosfera.org/pipermail/development/attachments/20081105/651b6cdb/attachment.htm
More information about the Development
mailing list