1Rex::Commands::Kernel(3U)ser Contributed Perl DocumentatiRoenx::Commands::Kernel(3)
2
3
4

NAME

6       Rex::Commands::Kernel - Load/Unload Kernel Modules
7

DESCRIPTION

9       With this module you can load and unload kernel modules.
10
11       Version <= 1.0: All these functions will not be reported.
12
13       All these functions are not idempotent.
14

SYNOPSIS

16        kmod load => "ipmi_si";
17
18        kmod unload => "ipmi_si";
19

EXPORTED FUNCTIONS

21   kmod($action => $module)
22       This function loads or unloads a kernel module.
23
24        task "load", sub {
25          kmod load => "ipmi_si";
26        };
27
28        task "unload", sub {
29          kmod unload => "ipmi_si";
30        };
31
32       If you're using NetBSD or OpenBSD you have to specify the complete path
33       and, if needed the entry function.
34
35        task "load", sub {
36          kmod load => "/usr/lkm/ntfs.o";
37          kmod load => "/path/to/module.o", entry => "entry_function";
38        };
39
40
41
42perl v5.32.1                      2021-03-06          Rex::Commands::Kernel(3)
Impressum