Project

General

Profile

« Previous | Next » 

Revision c62c873c

Added by Scott Ullrich about 16 years ago

Allow auto firmware upgrade to work on NanoBSD

View differences:

etc/inc/globals.inc
73 73
	"captiveportal_element_sizelimit" => 262144,
74 74
	"xmlrpcpath" => "/pfSense/xmlrpc.php",
75 75
	"embeddedbootupslice" => "/dev/ad0a",
76
	"update_url" => "http://updates.pfSense.com/_updaters",
77
	"update_manifest" => "http://updates.pfSense.com/manifest",
78 76
	"firmware_update_text" => "(pfSense-*.tgz)",
79 77
	"wireless_regex" => "/^(ndis|wi|ath|an|ral|ural|wai|iwi|awi|wlan|rum)/",
80 78
	"vlan_native_supp" => array("vge", "bfe", "dc", "fxp", "gem", "hme", "rl", "sis", "ste", "tl", "tx", "xl"),
......
87 85
/* TCP flags */
88 86
$tcpflags = array("syn", "ack", "fin", "rst", "psh", "urg");
89 87

  
88
if(file_exists("/etc/platform")) {
89
	$g['$platform'] = trim(file_get_contents("/etc/platform"));
90
	if($g['platform'] == "nanobsd") {
91
		$g['update_url']="http://updates.pfSense.com/nanobsd/_updaters";
92
		$g['update_manifest']="http://updates.pfSense.com/nanobsd/manifest",
93
	} else {
94
		$g['update_url']="http://updates.pfSense.com/_updaters";
95
		$g['update_manifest']="http://updates.pfSense.com/manifest",
96
	}
97
}
98

  
90 99
?>

Also available in: Unified diff