system: do not unload cryptodev, it causes a panic when in use

This commit is contained in:
Franco Fichtner 2016-05-08 12:54:08 +02:00
parent 61192fce99
commit 62870e3886

View File

@ -373,9 +373,8 @@ function load_crypto_module()
}
if (isset($config['system']['cryptodev_enable'])) {
log_error(gettext('Loading cryptodev kernel module.'));
mwexecf('/sbin/kldload %s', 'cryptodev', true);
} else {
mwexecf('/sbin/kldunload %s', 'cryptodev', true);
}
}