Commit 67a3a7e8 authored by Franco Fichtner's avatar Franco Fichtner

rc: load required kernel modules

parent 73be890c
...@@ -352,6 +352,17 @@ function is_fqdn($fqdn) { ...@@ -352,6 +352,17 @@ function is_fqdn($fqdn) {
return($hostname); return($hostname);
} }
function load_kernel_module()
{
$mods = array(
'carp',
);
foreach ($mods as $mod) {
mwexecf('/sbin/kldload %s', $mod);
}
}
function load_crypto_module() function load_crypto_module()
{ {
global $config; global $config;
......
...@@ -195,6 +195,9 @@ if (is_interface_mismatch()) { ...@@ -195,6 +195,9 @@ if (is_interface_mismatch()) {
led_kitt(); led_kitt();
} }
/* load extra modules not in GENERIC */
load_kernel_module();
/* enable optional crypto modules */ /* enable optional crypto modules */
load_crypto_module(); load_crypto_module();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment