- lcd4l: start/stop daemon with start/stop functions

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-02-01 00:10:29 +01:00
committed by Thilo Graf
parent 6eb0c6af44
commit b291cef2d0

View File

@@ -193,6 +193,8 @@ void CLCD4l::StartLCD4l()
pthread_detach(thrLCD4l); pthread_detach(thrLCD4l);
lcd4linux(true); lcd4linux(true);
} }
if (g_settings.lcd4l_support)
exec_initscript("lcd4linux", "start");
} }
void CLCD4l::StopLCD4l() void CLCD4l::StopLCD4l()
@@ -204,6 +206,7 @@ void CLCD4l::StopLCD4l()
thrLCD4l = 0; thrLCD4l = 0;
lcd4linux(false); lcd4linux(false);
} }
exec_initscript("lcd4linux", "stop");
} }
void CLCD4l::SwitchLCD4l() void CLCD4l::SwitchLCD4l()