diff options
Diffstat (limited to 'usr/local/www/system_firmware_auto.php')
-rwxr-xr-x | usr/local/www/system_firmware_auto.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr/local/www/system_firmware_auto.php b/usr/local/www/system_firmware_auto.php index a777d18..938f5b0 100755 --- a/usr/local/www/system_firmware_auto.php +++ b/usr/local/www/system_firmware_auto.php @@ -178,8 +178,13 @@ if ($sigchk == 1) $sig_warning = "The digital signature on this image is invalid."; else if ($sigchk == 2) $sig_warning = "This image is not digitally signed."; -else if (($sigchk == 3) || ($sigchk == 4)) +else if (($sigchk >= 3)) { $sig_warning = "There has been an error verifying the signature on this image."; + update_status($sig_warning); + update_output_window("Update cannot continue"); + require("fend.inc"); + exit; +} if (!verify_gzip_file("{$g['upload_path']}/latest.tgz")) { update_status("The image file is corrupt."); @@ -193,7 +198,9 @@ if (!verify_gzip_file("{$g['upload_path']}/latest.tgz")) { exit; } -if ($sigchk) { +if ($sigchk == 2 && isset($config['system']['firmware']['allowinvalidsig'])) + update_output_window("\nrImage has no signature but the system configured to allow unsigned images.\n"); +else if ($sigchk) { update_status($sig_warning); update_output_window("Update cannot continue"); if (file_exists("{$g['upload_path']}/latest.tgz")) { |