El día Friday, April 13, 2012 a las 10:48:45AM +0200, Simon Busch escribió:
> > Are there any hooks in phonefsod to launch a shell script, for example, > > at the end of a phone call? > > Not for phonefsod. There is the oevents dameon which is part of the old > frameworkd which you can use for this. You can define different rules to > action on different triggers like when a call is ending. Take a look at [1]. > > regards, > Simon > > [1]: > http://git.freesmartphone.org/?p=framework.git;a=blob;f=etc/freesmartphone/oevents/rules.yaml;h=695f5ff7a7c323a36fe13bbec3e7c1356d7e5122;hb=HEAD Hi Simon, Thanks for the hint; I read the above source and added to my older file /etc/freesmartphone/oevents/rules.yaml the following lines at the end: # # my own tests # - trigger: Time(14, 40) actions: - Debug("my first test") - Command('touch /tmp/action') Then I restarted the daemon with /etc/init.d/frameworkd restart the registration of the trigger is mentioned in the log file: # fgrep first frameworkd.log 2012.04.13 14:31:01.877 oeventsd INFO Created new rule : on Time(14:40) if And() then [Debug("my first test"), CommandAction(touch /tmp/action, {})] 2012.04.13 14:31:03.544 oeventsd.rule INFO enable rule : on Time(14:40) if And() then [Debug("my first test"), CommandAction(touch /tmp/action, {})] but nothing visible happened at 14:40h; I have also no proc 'oeventsd', maybe this is part of the problem? Thanks matthias -- Matthias Apitz e <[email protected]> - w http://www.unixarea.de/ UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5 _______________________________________________ Shr-devel mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-devel
