From b24a73900b69b3aa9fd1cec8aca793cd7d7fa59f Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 11 Jul 2009 20:57:44 -0400 Subject: Allow auto firmware upgrade to work on NanoBSD --- etc/inc/globals.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 8b1b7eb..e8e8f46 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -75,7 +75,6 @@ $g = array( "xmlrpcpath" => "/pfSense/xmlrpc.php", "embeddedbootupslice" => "/dev/ad0a", "services_dhcp_server_enable" => true, - "update_url" => "http://updates.pfSense.com/_updaters", "update_manifest" => "http://updates.pfSense.com/manifest", "firmware_update_text" => "(pfSense-*.tgz)", "wireless_regex" => "/^(ndis|wi|ath|an|ral|ural|wai|iwi|awi|wlan|rum)/", @@ -89,4 +88,12 @@ $iptos = array("lowdelay", "throughput", "reliability"); /* TCP flags */ $tcpflags = array("syn", "ack", "fin", "rst", "psh", "urg"); +if(file_exists("/etc/platform")) { + $g['$platform'] = trim(file_get_contents("/etc/platform")); + if($g['platform'] == "nanobsd") + $g['update_url']="http://updates.pfSense.com/nanobsd/_updaters"; + else + $g['update_url']="http://updates.pfSense.com/_updaters"; +} + ?> \ No newline at end of file -- cgit v1.1