mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 07:51:11 +02:00
add deepstandby.off/on script
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1080 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5408966cd0
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-01-28 (Fri, 28 Jan 2011)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -3422,6 +3422,11 @@ void CNeutrinoApp::ExitRun(const bool /*write_si*/, int retcode)
|
||||
}
|
||||
|
||||
if(retcode) {
|
||||
const char *neutrino_enter_deepstandby_script = CONFIGDIR "/deepstandby.on";
|
||||
printf("[%s] executing %s\n",__FILE__ ,neutrino_enter_deepstandby_script);
|
||||
if (system(neutrino_enter_deepstandby_script) != 0)
|
||||
perror(neutrino_enter_deepstandby_script );
|
||||
|
||||
printf("entering off state\n");
|
||||
mode = mode_off;
|
||||
//CVFD::getInstance()->ShowText((char *) g_Locale->getText(LOCALE_MAINMENU_SHUTDOWN));
|
||||
|
@@ -38,6 +38,7 @@
|
||||
#include <coolstream/cs_vfd.h>
|
||||
|
||||
#include <vector>
|
||||
#include <cstdlib>
|
||||
|
||||
#ifndef FP_IOCTL_CLEAR_WAKEUP_TIMER
|
||||
#define FP_IOCTL_CLEAR_WAKEUP_TIMER 10
|
||||
@@ -77,9 +78,15 @@ void CTimerManager::Init(void)
|
||||
close(fd);
|
||||
}
|
||||
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
|
||||
if(wakeup)
|
||||
if(wakeup){
|
||||
creat("/tmp/.wakeup", 0);
|
||||
|
||||
}else{
|
||||
const char *neutrino_leave_deepstandby_script = CONFIGDIR "/deepstandby.off";
|
||||
printf("[%s] executing %s\n",__FILE__ ,neutrino_leave_deepstandby_script);
|
||||
if (system(neutrino_leave_deepstandby_script) != 0)
|
||||
perror( neutrino_leave_deepstandby_script );
|
||||
}
|
||||
loadRecordingSafety();
|
||||
|
||||
//thread starten
|
||||
|
Reference in New Issue
Block a user