mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- lcd4linux: use exec_initscript() to execute initscript
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -862,13 +862,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
|||||||
WriteFile(LAYOUT, Layout);
|
WriteFile(LAYOUT, Layout);
|
||||||
m_Layout = Layout;
|
m_Layout = Layout;
|
||||||
if (!firstRun)
|
if (!firstRun)
|
||||||
{
|
exec_initscript("lcd4linux", "reload");
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user