diff options
Diffstat (limited to 'etc/inc/vpn.inc')
-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"); |