diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-05 01:30:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-05 01:30:01 +0000 |
commit | a636c6ba3e3d9f445deecce8d538f9de12f17057 (patch) | |
tree | 8697e10a5af12d1ea6729cf59a60d05ccee88a1f | |
parent | 492d334b463380dbefe8a1df8d50a7d9109c7cab (diff) | |
download | pfsense-a636c6ba3e3d9f445deecce8d538f9de12f17057.zip pfsense-a636c6ba3e3d9f445deecce8d538f9de12f17057.tar.gz |
Enable padlock support
-rw-r--r-- | etc/inc/vpn.inc | 22 |
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"; } } |