Project

General

Profile

« Previous | Next » 

Revision 65fdf7af

Added by Scott Ullrich almost 20 years ago

Only enable Padlock if we find ACE in the dmesg

View differences:

etc/inc/vpn.inc
90 90
	if($g['booting'] == true) {
91 91
		/* determine if we should load the via padlock module */
92 92
		$dmesg_boot = file_get_contents("/var/log/dmesg.boot");
93
		if(stristr($dmesg_boot, "ACE")) {		
93
		if(stristr($dmesg_boot, "ACE") == true) {		
94 94
			echo "[VIA Padlock] ";
95 95
			mwexec("/sbin/kldload padlock");
96 96
			mwexec("sysctl net.inet.ipsec.crypto_support=1");

Also available in: Unified diff