From a15655607333fc903ce6e32cabbd51f0ea0595d2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 1 Feb 2021 00:10:29 +0100 Subject: [PATCH] lcd4l: start/stop daemon with start/stop functions Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6f18e42424ec143d70116d874020e4186f2baddf Author: vanhofen Date: 2021-02-01 (Mon, 01 Feb 2021) Origin message was: ------------------ - lcd4l: start/stop daemon with start/stop functions ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/lcd4l.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index 87b6af546..358a27c99 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -147,6 +147,8 @@ void CLCD4l::StartLCD4l() pthread_create(&thrLCD4l, NULL, LCD4lProc, (void*) this); pthread_detach(thrLCD4l); } + if (g_settings.lcd4l_support) + exec_initscript("lcd4linux", "start"); } void CLCD4l::StopLCD4l() @@ -157,6 +159,7 @@ void CLCD4l::StopLCD4l() pthread_cancel(thrLCD4l); thrLCD4l = 0; } + exec_initscript("lcd4linux", "stop"); } void CLCD4l::SwitchLCD4l()