summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-05 01:30:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-05 01:30:01 +0000
commita636c6ba3e3d9f445deecce8d538f9de12f17057 (patch)
tree8697e10a5af12d1ea6729cf59a60d05ccee88a1f /etc/inc/vpn.inc
parent492d334b463380dbefe8a1df8d50a7d9109c7cab (diff)
downloadpfsense-a636c6ba3e3d9f445deecce8d538f9de12f17057.zip
pfsense-a636c6ba3e3d9f445deecce8d538f9de12f17057.tar.gz
Enable padlock support
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc22
1 files changed, 10 insertions, 12 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 9612db6..f0fbf61 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -87,18 +87,16 @@ function find_last_gif_device() {
function vpn_ipsec_configure($ipchg = false) {
global $config, $g;
- if(isset($config['system']['developer'])) {
- if($g['booting'] == true) {
- /* determine if we should load the via padlock module */
- $dmesg_boot = `cat /var/log/dmesg.boot | grep CPU`;
- if(stristr($dmesg_boot, "ACE") == true) {
- echo "Enabling [VIA Padlock] ...";
- mwexec("/sbin/kldload padlock");
- mwexec("/sbin/sysctl net.inet.ipsec.crypto_support=1");
- mwexec("/usr/sbin/setkey -F");
- mwexec("/usr/sbin/setkey -FP");
- echo " done.\n";
- }
+ if($g['booting'] == true) {
+ /* determine if we should load the via padlock module */
+ $dmesg_boot = `cat /var/log/dmesg.boot | grep CPU`;
+ if(stristr($dmesg_boot, "ACE") == true) {
+ echo "Enabling [VIA Padlock] ...";
+ mwexec("/sbin/kldload padlock");
+ mwexec("/sbin/sysctl net.inet.ipsec.crypto_support=1");
+ mwexec("/usr/sbin/setkey -F");
+ mwexec("/usr/sbin/setkey -FP");
+ echo " done.\n";
}
}
OpenPOWER on IntegriCloud