diff options
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'])) { |