diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 18:18:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 18:18:02 +0000 |
commit | 1a5eeb97b1bba8de00d1226e144f294ff7c76038 (patch) | |
tree | 7a82a4ba3bace4a038d785ea8a44958aeaa5a7e6 /etc/inc/vpn.inc | |
parent | b26cc2171b9b5e498d1c385664063e2251c99672 (diff) | |
download | pfsense-1a5eeb97b1bba8de00d1226e144f294ff7c76038.zip pfsense-1a5eeb97b1bba8de00d1226e144f294ff7c76038.tar.gz |
Only setup via padlock on bootup.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index a6d39bf..e8a90e5 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -87,12 +87,14 @@ function find_last_gif_device() { function vpn_ipsec_configure($ipchg = false) { global $config, $g; - /* deterimine if we should load the via padlock module */ - $dmesg_boot = file_get_contents("/var/log/dmesg.boot"); - if(stristr($dmesg_boot, "Padlock")) { - if($g['booting'] == true) - echo "[VIA Padlock] "; + + if($g['booting'] == true) { + /* deterimine if we should load the via padlock module */ + $dmesg_boot = file_get_contents("/var/log/dmesg.boot"); + if(stristr($dmesg_boot, "Padlock")) { + echo "[VIA Padlock] "; mwexec("/sbin/kldload padlock"); + } } if(isset($config['ipsec']['preferredoldsa'])) { |