mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
- neutrino.cpp: handle deepstandy-scripts in same way as the other scripts
This commit is contained in:
@@ -66,6 +66,8 @@
|
||||
#define NEUTRINO_RECORDING_ENDED_SCRIPT CONFIGDIR "/recording.end"
|
||||
#define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.on"
|
||||
#define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.off"
|
||||
#define NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.on"
|
||||
#define NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.off"
|
||||
#define MOVIEPLAYER_START_SCRIPT CONFIGDIR "/movieplayer.start"
|
||||
#define MOVIEPLAYER_END_SCRIPT CONFIGDIR "/movieplayer.end"
|
||||
|
||||
|
@@ -1751,10 +1751,9 @@ void wake_up( bool &wakeup)
|
||||
}
|
||||
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
|
||||
if(!wakeup){
|
||||
const char *neutrino_leave_deepstandby_script = CONFIGDIR "/deepstandby.off";
|
||||
printf("[%s] executing %s\n",__FILE__ ,neutrino_leave_deepstandby_script);
|
||||
if (my_system(neutrino_leave_deepstandby_script) != 0)
|
||||
perror( neutrino_leave_deepstandby_script );
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT ".");
|
||||
if (my_system(NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT) != 0)
|
||||
perror(NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT " failed");
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2913,10 +2912,9 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
||||
saveSetup(NEUTRINO_SETTINGS_FILE);
|
||||
|
||||
if(retcode) {
|
||||
const char *neutrino_enter_deepstandby_script = CONFIGDIR "/deepstandby.on";
|
||||
printf("[%s] executing %s\n",__FILE__ ,neutrino_enter_deepstandby_script);
|
||||
if (my_system(neutrino_enter_deepstandby_script) != 0)
|
||||
perror(neutrino_enter_deepstandby_script );
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT ".");
|
||||
if (my_system(NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT) != 0)
|
||||
perror(NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT " failed");
|
||||
|
||||
printf("entering off state\n");
|
||||
mode = mode_off;
|
||||
|
Reference in New Issue
Block a user