mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-27 15:04:33 +00:00
Check for /bin directory existence and use /usr/bin as fallback
This commit is contained in:
parent
5b7d0106a5
commit
74cf1cee47
@ -750,7 +750,12 @@ void StartKernelShell()
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string path = "/bin/";
|
std::string path = "/bin/";
|
||||||
|
|
||||||
|
if (!fs->PathExists("/bin"))
|
||||||
|
path = "/usr/bin/";
|
||||||
|
|
||||||
path += cmd_only;
|
path += cmd_only;
|
||||||
|
debug("path: %s", path.c_str());
|
||||||
if (fs->PathExists(path.c_str()))
|
if (fs->PathExists(path.c_str()))
|
||||||
{
|
{
|
||||||
const char *envp[5] = {
|
const char *envp[5] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user