diff options
Diffstat (limited to 'usr')
-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; ?> |