summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-07-04 19:49:50 -0400
committerjim-p <jim@pingle.org>2009-07-04 19:49:50 -0400
commit09f18f59dd89ef98fa59ef8a11685e35f457fded (patch)
treedcecc66f357c069fccf7877fbf28bb8797a2073a /etc
parentcdd3238d3b4f4e8e853ba221b804e21b69be2ac8 (diff)
downloadpfsense-09f18f59dd89ef98fa59ef8a11685e35f457fded.zip
pfsense-09f18f59dd89ef98fa59ef8a11685e35f457fded.tar.gz
Add configurable option to enable glxsb.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc11
-rwxr-xr-xetc/rc.bootup3
2 files changed, 14 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7e6b5b4..3fa3abe 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1638,4 +1638,15 @@ function compare_hostname_to_dnscache($hostname) {
}
}
+/*
+ * load_glxsb() - Load the glxsb crypto module if enabled in config.
+ */
+function load_glxsb() {
+ global $config, $g;
+ $is_loaded = `/sbin/kldstat | /usr/bin/grep -c glxsb`;
+ if (isset($config['system']['glxsb_enable']) && ($is_loaded == 0)) {
+ mwexec("/sbin/kldload glxsb");
+ }
+}
+
?> \ No newline at end of file
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 067c4d5..5668758 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -155,6 +155,9 @@ echo "Setting up extended sysctls...";
system_setup_sysctl();
echo "done.\n";
+/* enable glxsb if wanted */
+load_glxsb();
+
/* run any early shell commands specified in config.xml */
system_do_shell_commands(1);
OpenPOWER on IntegriCloud