Files
mgmt/examples/lang/modinfo.mcl
James Shubin 3b88ad3794 lang: core: os: Add a modinfo function
Not sure if this will need renaming, but might be a useful family of
functions.
2025-06-05 21:40:19 -04:00

12 lines
181 B
Plaintext

import "os"
$s = if os.modinfo_loaded("r8169") { # buggy module
"you might have a buggy network card module"
} else {
"you aren't using r8169"
}
print "modinfo" {
msg => $s,
}