mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
Services: Use new global variables at /sys/kernel/ directory
This commit is contained in:
parent
b579d9518c
commit
35c98a031a
11 changed files with 13 additions and 13 deletions
|
@ -70,7 +70,7 @@ static ErrorOr<void> determine_system_mode()
|
|||
g_system_mode = "text";
|
||||
});
|
||||
|
||||
auto f = Core::File::construct("/proc/system_mode");
|
||||
auto f = Core::File::construct("/sys/kernel/system_mode");
|
||||
if (!f->open(Core::OpenMode::ReadOnly)) {
|
||||
dbgln("Failed to read system_mode: {}", f->error_string());
|
||||
// Continue and assume "text" mode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue