mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
- use new exec_controlscript() function
Conflicts: src/driver/record.cpp src/global.h src/neutrino.cpp Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1633,12 +1633,11 @@ bool CRecordManager::RunStartScript(void)
|
||||
if(RecordingStatus())
|
||||
return false;
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_START_SCRIPT ".");
|
||||
if (my_system(NEUTRINO_RECORDING_START_SCRIPT) != 0) {
|
||||
perror(NEUTRINO_RECORDING_START_SCRIPT " failed");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
#if 0
|
||||
printf("CRecordManager::%s: wakeup hdd...\n", __func__);
|
||||
wakeup_hdd(g_settings.network_nfs_recordingdir.c_str(),true);
|
||||
#endif
|
||||
return exec_controlscript(NEUTRINO_RECORDING_START_SCRIPT);
|
||||
}
|
||||
|
||||
bool CRecordManager::RunStopScript(void)
|
||||
@@ -1647,12 +1646,7 @@ bool CRecordManager::RunStopScript(void)
|
||||
if(RecordingStatus())
|
||||
return false;
|
||||
|
||||
puts("[neutrino.cpp] executing " NEUTRINO_RECORDING_ENDED_SCRIPT ".");
|
||||
if (my_system(NEUTRINO_RECORDING_ENDED_SCRIPT) != 0) {
|
||||
perror(NEUTRINO_RECORDING_ENDED_SCRIPT " failed");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return exec_controlscript(NEUTRINO_RECORDING_ENDED_SCRIPT);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user