From 3df5034ae19b028a35634767f3febdcdbc9c2124 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 11 Jun 2021 21:16:22 +0200 Subject: [PATCH] lcd4linux: use exec_initscript() to execute initscript Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fed13df05a8d1d3bf82e5cd5661611e0f2dbecb8 Author: vanhofen Date: 2021-06-11 (Fri, 11 Jun 2021) Origin message was: ------------------ - lcd4linux: use exec_initscript() to execute initscript ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/lcd4l.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index de6b682c2..77c47fafa 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -832,13 +832,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun) m_Layout = Layout; if (!firstRun) - { - const char *buf = "service lcd4linux reload"; - - //printf("[CLCD4l] %s: executing '%s'\n", __FUNCTION__, buf); - if (my_system(3, "service", "lcd4linux", "reload") != 0) - printf("[CLCD4l] %s: executing '%s' failed\n", __FUNCTION__, buf); - } + exec_initscript("lcd4linux", "reload"); } }