diff options
author | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-11 20:59:21 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.homeunix.net> | 2009-07-11 21:01:33 -0400 |
commit | c62c873cdb3eb444cd939d9a677524b9ef0881ac (patch) | |
tree | cf2b4dc0cd25684c98c46efc8de6f50e9af4927a /etc/inc/globals.inc | |
parent | 963f93f29bd2004c9d0ead05b19f49089bde6183 (diff) | |
download | pfsense-c62c873cdb3eb444cd939d9a677524b9ef0881ac.zip pfsense-c62c873cdb3eb444cd939d9a677524b9ef0881ac.tar.gz |
Allow auto firmware upgrade to work on NanoBSD
Diffstat (limited to 'etc/inc/globals.inc')
-rw-r--r-- | etc/inc/globals.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 1367103..b27c5a5 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -73,8 +73,6 @@ $g = array( "captiveportal_element_sizelimit" => 262144, "xmlrpcpath" => "/pfSense/xmlrpc.php", "embeddedbootupslice" => "/dev/ad0a", - "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)/", "vlan_native_supp" => array("vge", "bfe", "dc", "fxp", "gem", "hme", "rl", "sis", "ste", "tl", "tx", "xl"), @@ -87,4 +85,15 @@ $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"; + $g['update_manifest']="http://updates.pfSense.com/nanobsd/manifest", + } else { + $g['update_url']="http://updates.pfSense.com/_updaters"; + $g['update_manifest']="http://updates.pfSense.com/manifest", + } +} + ?>
\ No newline at end of file |