mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
Kernel: Remove the /sys/kernel/constants directory
The name for this directory is a bit awkward. Also, the distinction of constant information is not really valuable as I thought it would be, so let's bring that information back into the /sys/kernel directory.
This commit is contained in:
parent
751aae77bc
commit
aee5f4e4b2
8 changed files with 32 additions and 88 deletions
|
@ -72,7 +72,7 @@ static ErrorOr<void> determine_system_mode()
|
|||
g_system_mode = "text";
|
||||
});
|
||||
|
||||
auto file_or_error = Core::File::open("/sys/kernel/constants/system_mode"sv, Core::File::OpenMode::Read);
|
||||
auto file_or_error = Core::File::open("/sys/kernel/system_mode"sv, Core::File::OpenMode::Read);
|
||||
if (file_or_error.is_error()) {
|
||||
dbgln("Failed to read system_mode: {}", file_or_error.error());
|
||||
// Continue and assume "text" mode.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue