diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 17:20:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 17:20:25 +0000 |
commit | b26cc2171b9b5e498d1c385664063e2251c99672 (patch) | |
tree | 5d82f684ba5578018fa41134d580801a45524f7e | |
parent | 8c5096aad3c91bf276fb1812446be46af11fd97a (diff) | |
download | pfsense-b26cc2171b9b5e498d1c385664063e2251c99672.zip pfsense-b26cc2171b9b5e498d1c385664063e2251c99672.tar.gz |
Alert on bootup if we are enabling padlock
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index f3391c7..a6d39bf 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -89,8 +89,11 @@ function vpn_ipsec_configure($ipchg = false) { /* deterimine if we should load the via padlock module */ $dmesg_boot = file_get_contents("/var/log/dmesg.boot"); - if(stristr($dmesg_boot, "Padlock")) + if(stristr($dmesg_boot, "Padlock")) { + if($g['booting'] == true) + echo "[VIA Padlock] "; mwexec("/sbin/kldload padlock"); + } if(isset($config['ipsec']['preferredoldsa'])) { mwexec("/sbin/sysctl net.key.preferred_oldsa=0"); |