Project

General

Profile

« Previous | Next » 

Revision 0d7715eb

Added by Renato Botelho almost 15 years ago

Detect if nanobsd or nanobsd-vga image must be used for upgrade

View differences:

usr/local/www/system_firmware_auto.php
126 126
update_status(gettext("Downloading current version information") . "...");
127 127
$nanosize = "";
128 128
if ($g['platform'] == "nanobsd") {
129
	$nanosize = "-nanobsd-" . strtolower(trim(file_get_contents("/etc/nanosize.txt")));
129
	if (file_exists("/etc/nano_use_vga.txt"))
130
		$nanosize = "-nanobsd-vga-";
131
	else
132
		$nanosize = "-nanobsd-";
133

  
134
	$nanosize .= strtolower(trim(file_get_contents("/etc/nanosize.txt")));
130 135
}
131 136

  
132 137
download_file_with_progress_bar("{$updater_url}/version{$nanosize}", "/tmp/{$g['product_name']}_version");
usr/local/www/system_firmware_check.php
123 123

  
124 124
$nanosize = "";
125 125
if ($g['platform'] == "nanobsd") {
126
	$nanosize = "-nanobsd-" . strtolower(trim(file_get_contents("/etc/nanosize.txt")));
126
	if (file_exists("/etc/nano_use_vga.txt"))
127
		$nanosize = "-nanobsd-vga-";
128
	else
129
		$nanosize = "-nanobsd-";
130

  
131
	$nanosize .= strtolower(trim(file_get_contents("/etc/nanosize.txt")));
127 132
}
128 133

  
129 134
download_file_with_progress_bar("{$updater_url}/version{$nanosize}", "/tmp/{$g['product_name']}_version");

Also available in: Unified diff