Revision dc61252a
Added by Renato Botelho almost 9 years ago
src/etc/inc/globals.inc | ||
---|---|---|
98 | 98 |
$g['product_version_string'] .= "-p{$g['product_version_patch']}"; |
99 | 99 |
} |
100 | 100 |
|
101 |
if (file_exists("/etc/platform")) { |
|
102 |
$g['platform'] = trim(file_get_contents("/etc/platform")); |
|
103 |
} else { |
|
104 |
// shouldn't happen but "just in case" no platform were detected |
|
105 |
$g['platform'] = 'undetected'; |
|
106 |
} |
|
101 |
/* XXX: Backward compatible */ |
|
102 |
$g['platform'] = $g['product_name']; |
|
107 | 103 |
|
108 | 104 |
if (file_exists("{$g['etc_path']}/default-config-flavor")) { |
109 | 105 |
$flavor_array = file("{$g['etc_path']}/default-config-flavor"); |
Also available in: Unified diff
Deprecate nanobsd platform and remove all conditionals that uses it