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