mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
shutdown_count.cpp: add NEUTRINO_ENTER_INACTIVITY_SCRIPT
script will be executed if g_settings.shutdown_min expires
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3b9193982b
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-11-01 (Thu, 01 Nov 2012)
Origin message was:
------------------
- shutdown_count.cpp: add NEUTRINO_ENTER_INACTIVITY_SCRIPT
script will be executed if g_settings.shutdown_min expires
------------------
This commit was generated by Migit
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include <global.h>
|
#include <global.h>
|
||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
#include <system/settings.h>
|
#include <system/settings.h>
|
||||||
|
#include <system/helpers.h>
|
||||||
|
|
||||||
#include <sys/timeb.h>
|
#include <sys/timeb.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -106,6 +107,11 @@ void SHTDCNT::shutdown_counter()
|
|||||||
sleep_cnt--;
|
sleep_cnt--;
|
||||||
} else if(sleeptimer_active && !CNeutrinoApp::getInstance ()->recordingstatus) {
|
} else if(sleeptimer_active && !CNeutrinoApp::getInstance ()->recordingstatus) {
|
||||||
sleeptimer_active = false;
|
sleeptimer_active = false;
|
||||||
|
|
||||||
|
puts("[SHTDCNT] executing " NEUTRINO_ENTER_INACTIVITY_SCRIPT ".");
|
||||||
|
if (my_system(NEUTRINO_ENTER_INACTIVITY_SCRIPT) != 0)
|
||||||
|
perror(NEUTRINO_ENTER_INACTIVITY_SCRIPT " failed");
|
||||||
|
|
||||||
printf("[SHTDCNT] sleep-timer send NeutrinoMessages::SLEEPTIMER\n");
|
printf("[SHTDCNT] sleep-timer send NeutrinoMessages::SLEEPTIMER\n");
|
||||||
g_RCInput->postMsg(NeutrinoMessages::SLEEPTIMER, 1);
|
g_RCInput->postMsg(NeutrinoMessages::SLEEPTIMER, 1);
|
||||||
}
|
}
|
||||||
|
@@ -66,6 +66,7 @@
|
|||||||
#define NEUTRINO_RECORDING_ENDED_SCRIPT CONFIGDIR "/recording.end"
|
#define NEUTRINO_RECORDING_ENDED_SCRIPT CONFIGDIR "/recording.end"
|
||||||
#define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.on"
|
#define NEUTRINO_ENTER_STANDBY_SCRIPT CONFIGDIR "/standby.on"
|
||||||
#define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.off"
|
#define NEUTRINO_LEAVE_STANDBY_SCRIPT CONFIGDIR "/standby.off"
|
||||||
|
#define NEUTRINO_ENTER_INACTIVITY_SCRIPT CONFIGDIR "/inactivity.on"
|
||||||
#define NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.on"
|
#define NEUTRINO_ENTER_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.on"
|
||||||
#define NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.off"
|
#define NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT CONFIGDIR "/deepstandby.off"
|
||||||
#define MOVIEPLAYER_START_SCRIPT CONFIGDIR "/movieplayer.start"
|
#define MOVIEPLAYER_START_SCRIPT CONFIGDIR "/movieplayer.start"
|
||||||
|
Reference in New Issue
Block a user