mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CNeutrinoApp: add hook for neutrino start
Script will be executed on start of neutrino before. Handling is similar like all other possible hooks, see global.h.
This commit is contained in:
@@ -2143,6 +2143,10 @@ void wake_up( bool &wakeup)
|
||||
|
||||
int CNeutrinoApp::run(int argc, char **argv)
|
||||
{
|
||||
puts("[neutrino] executing " NEUTRINO_APP_START_SCRIPT ".");
|
||||
if (my_system(NEUTRINO_APP_START_SCRIPT) != 0)
|
||||
perror(NEUTRINO_APP_START_SCRIPT " failed");
|
||||
|
||||
CmdParser(argc, argv);
|
||||
|
||||
TIMER_START();
|
||||
|
Reference in New Issue
Block a user