mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
use new exec_controlscript() function
Origin commit data
------------------
Commit: a84dbc4741
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-01-26 (Sat, 26 Jan 2019)
Origin message was:
------------------
- use new exec_controlscript() function
This commit is contained in:
@@ -1724,12 +1724,7 @@ bool CRecordManager::RunStartScript(void)
|
||||
printf("CRecordManager::%s: wakeup hdd...\n", __func__);
|
||||
wakeup_hdd(g_settings.network_nfs_recordingdir.c_str(),true);
|
||||
|
||||
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;
|
||||
return exec_controlscript(NEUTRINO_RECORDING_START_SCRIPT);
|
||||
}
|
||||
|
||||
bool CRecordManager::RunStopScript(void)
|
||||
@@ -1738,12 +1733,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