diff options
Diffstat (limited to 'scripts/find-runtime-roots.pl.in')
-rw-r--r-- | scripts/find-runtime-roots.pl.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/find-runtime-roots.pl.in b/scripts/find-runtime-roots.pl.in index 11c96e8b23..64c17419ff 100644 --- a/scripts/find-runtime-roots.pl.in +++ b/scripts/find-runtime-roots.pl.in @@ -56,3 +56,20 @@ sub lsof { readProc; lsof; + + +sub readFile { + my $path = shift; + if (-e $path) { + if (open FILE, "$path") { + while (<FILE>) { + print; + } + close FILE; + } + } +} + +# This is rather NixOS-specific, so it probably shouldn't be here. +readFile "/proc/sys/kernel/modprobe"; +readFile "/proc/sys/kernel/fbsplash"; |