diff options
author | jim-p <jimp@pfsense.org> | 2013-01-14 15:13:14 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-01-14 15:21:40 -0500 |
commit | 02f3e0bb6c987fb6652df33344f3bc619ba30f56 (patch) | |
tree | efad82b605e281f70f7540d1517a8a5607644cea | |
parent | 9deea99c0e8bba20e8267147a4da6b808cc56b7d (diff) | |
download | pfsense-02f3e0bb6c987fb6652df33344f3bc619ba30f56.zip pfsense-02f3e0bb6c987fb6652df33344f3bc619ba30f56.tar.gz |
Bold and note manifest entries that match the current architecture, and add a note cautioning against a cross-architecture upgrade.
-rwxr-xr-x | usr/local/www/system_firmware_settings.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware_settings.php b/usr/local/www/system_firmware_settings.php index 34849d1..7399f1b 100755 --- a/usr/local/www/system_firmware_settings.php +++ b/usr/local/www/system_firmware_settings.php @@ -135,11 +135,20 @@ function enable_altfirmwareurl(enable_over) { <?php foreach($preset_urls_split as $pus) { $pus_text = explode("\t", $pus); - if($pus_text[0]) - echo "<option value='{$pus_text[1]}'>{$pus_text[0]}</option>"; + if (empty($pus_text[0])) + continue; + if (stristr($pus_text[0], php_uname("m")) !== false) { + $style = " style=\"font-weight: bold\""; + $yourarch = " (Current architecture)"; + } else { + $style = ""; + $yourarch = ""; + } + echo "<option value='{$pus_text[1]}'{$style}>{$pus_text[0]}{$yourarch}</option>"; } ?> </select> + <br/><br/><?php echo sprintf(gettext("Entries denoted by \"Current architecture\" match the architecture of your current installation, such as %s. Changing architectures during an upgrade is not recommended, and may require a manual reboot after the update completes."), php_uname("m")); ?> </td> </tr> <?php endif; ?> |