Skip to content
Snippets Groups Projects
Commit 951d91ad authored by Adam Wujek's avatar Adam Wujek
Browse files

userspace/wrsw_hal: parse cmdline before checking if another instance is running


To e.g. be able tl check help message if another instance is running.

Signed-off-by: default avatarAdam Wujek <dev_public@wujek.eu>
parent 97e2f14c
Branches
No related merge requests found
......@@ -287,6 +287,8 @@ int main(int argc, char *argv[])
/* Print HAL's version */
pr_info("wrsw_hal. Commit %s, built on " __DATE__ "\n", __GIT_VER__);
hal_parse_cmdline(argc, argv);
/* Prevent from running HAL twice - it will likely freeze the system */
if (hal_check_running()) {
pr_error("Fatal: There is another WR HAL "
......@@ -294,8 +296,6 @@ int main(int argc, char *argv[])
return -1;
}
hal_parse_cmdline(argc, argv);
if (hal_init())
exit(1);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment