mirror of
https://github.com/Fishwaldo/LEDMessageBoard.git
synced 2025-07-08 13:58:44 +00:00
rename the config file
This commit is contained in:
parent
4e9483b4df
commit
0b5addda67
3 changed files with 2 additions and 2 deletions
|
@ -76,7 +76,7 @@ int cmd_save(struct cli_def *cli, const char *command, char *argv[], int argc)
|
||||||
{
|
{
|
||||||
struct LMBCTX *lmbctx = (struct LMBCTX *)cli_get_context(cli);
|
struct LMBCTX *lmbctx = (struct LMBCTX *)cli_get_context(cli);
|
||||||
boost::unique_lock<boost::mutex> scoped_lock(lmbctx->io_mutex);
|
boost::unique_lock<boost::mutex> scoped_lock(lmbctx->io_mutex);
|
||||||
lmbctx->save("LMB.conf");
|
lmbctx->save("/etc/LMBd.conf");
|
||||||
cli_print(cli, "Saved Config");
|
cli_print(cli, "Saved Config");
|
||||||
BOOST_LOG_TRIVIAL(info) << "Saved Config From Terminal";
|
BOOST_LOG_TRIVIAL(info) << "Saved Config From Terminal";
|
||||||
return CLI_OK;
|
return CLI_OK;
|
||||||
|
|
|
@ -93,7 +93,7 @@ int main()
|
||||||
std::vector<std::string> displayedmsgs;
|
std::vector<std::string> displayedmsgs;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
lmbctx->load("LMB.conf");
|
lmbctx->load("/etc/LMBd.conf");
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
BOOST_LOG_TRIVIAL(warning) << "Could Not Load Config File";
|
BOOST_LOG_TRIVIAL(warning) << "Could Not Load Config File";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue