kernel options

This commit is contained in:
Linus Dierheimer
2021-03-07 20:35:17 +01:00
parent 6cc99423c9
commit aa5b5f3caf
6 changed files with 49 additions and 76 deletions
+9 -1
View File
@@ -3,5 +3,13 @@
void ffPrintKernel(FFinstance* instance)
{
ffPrintLogoAndKey(instance, "Kernel");
puts(instance->state.utsname.release);
if(instance->config.kernelShowRelease && instance->config.kernelShowVersion)
printf("%s %s\n", instance->state.utsname.release, instance->state.utsname.version);
else if(instance->config.kernelShowRelease)
puts(instance->state.utsname.release);
else if(instance->config.kernelShowVersion)
puts(instance->state.utsname.version);
else
puts(instance->state.utsname.sysname);
}