Revision 9633e518
Added by Jim Pingle almost 12 years ago
etc/inc/globals.inc | ||
---|---|---|
99 | 99 |
|
100 | 100 |
if(file_exists("/etc/platform")) { |
101 | 101 |
$arch = php_uname("m"); |
102 |
/* Do not remove this, it is not needed for the snapshots URL but is needed later for the -RELEASE/stable URLs */ |
|
103 |
$arch = ($arch == "i386") ? "" : '/' . $arch; |
|
104 |
|
|
105 |
/* Full installs and NanoBSD use the same update directory and manifest in 2.x */ |
|
106 |
$g['update_url']="http://snapshots.pfsense.org/FreeBSD_RELENG_8_3/{$arch}/pfSense_HEAD/.updaters/"; |
|
107 |
$g['update_manifest']="http://updates.pfSense.com/manifest"; |
|
108 |
|
|
102 | 109 |
$g['platform'] = trim(file_get_contents("/etc/platform")); |
103 | 110 |
if($g['platform'] == "nanobsd") { |
104 |
$g['update_url']="http://snapshots.pfsense.org/FreeBSD_RELENG_8_3/{$arch}/pfSense_HEAD/.updaters/"; |
|
105 |
$g['update_manifest']="http://updates.pfSense.com/nanobsd/manifest"; |
|
106 | 111 |
$g['firmware_update_text']="pfSense-*.img.gz"; |
107 | 112 |
$g['hidedownloadbackup'] = true; |
108 | 113 |
$g['hidebackupbeforeupgrade'] = true; |
109 | 114 |
|
110 | 115 |
} else { |
111 |
$g['update_url']="http://snapshots.pfsense.org/FreeBSD_RELENG_8_3/{$arch}/pfSense_HEAD/.updaters/"; |
|
112 |
$g['update_manifest']="http://updates.pfSense.com/manifest"; |
|
113 | 116 |
$g['firmware_update_text']="pfSense-*.tgz"; |
114 | 117 |
} |
115 | 118 |
} |
Also available in: Unified diff
Simplify the update URL definition in globals.inc and add some comments to it.