Ich hab hier ein diff, welches Neutrino um 3 Script-Events erweitert.
Ich weiß nicht, ob das alles so an der richtigen Stelle ist. Vielleicht schaut sich das mal jemand an, und checkt es ggf. ins CVS ein.
neutrino_scripts.diff:
Code: Alles auswählen
156a157
> #define NEUTRINO_RECORDING_START_SCRIPT CONFIGDIR "/recording.start"
157a159,160
> #define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.enter"
> #define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.leave"
3618a3622,3629
>
> if (recordingstatus == 1)
> {
> puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_START_SCRIPT ".");
>
> if (system(NEUTRINO_RECORDING_START_SCRIPT) != 0)
> perror(NEUTRINO_RECORDING_START_SCRIPT "failed");
> }
4208a4220,4222
> puts("[neutrino.cpp] executing " NEUTRINO_ENTER_STANDBY_SCRIPT ".");
> if (system(NEUTRINO_ENTER_STANDBY_SCRIPT) != 0)
> perror(NEUTRINO_ENTER_STANDBY_SCRIPT "failed");
4222a4237,4239
> puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_STANDBY_SCRIPT ".");
> if (system(NEUTRINO_LEAVE_STANDBY_SCRIPT) != 0)
> perror(NEUTRINO_LEAVE_STANDBY_SCRIPT "failed");
4591c4608
< }
\ Kein Zeilenumbruch am Dateiende.
---
> }
Ryker