fix: LC2+ flashrom upgrades were looping
This commit is contained in:
@@ -92,10 +92,13 @@ data += `
|
|||||||
<upgradeblock width=280 height=15
|
<upgradeblock width=280 height=15
|
||||||
nexturl="${flashrom_info.next_rompath}"
|
nexturl="${flashrom_info.next_rompath}"
|
||||||
errorurl="${service_name}:/lc2-download-failed?"
|
errorurl="${service_name}:/lc2-download-failed?"
|
||||||
blockurl="${flashrom_info.rompath}"
|
`
|
||||||
|
if (!flashrom_info.is_last_part) data += `blockurl = "${flashrom_info.rompath}"`;
|
||||||
|
|
||||||
|
data += `
|
||||||
lastblock="${flashrom_info.is_last_part}"
|
lastblock="${flashrom_info.is_last_part}"
|
||||||
curblock="` + (flashrom_info.part_number + 1) + `"
|
curblock="` + (flashrom_info.part_number + 1) + `"
|
||||||
`
|
`;
|
||||||
if (flashrom_info.part_count) {
|
if (flashrom_info.part_count) {
|
||||||
data += `totalblocks="${flashrom_info.part_count}"`;
|
data += `totalblocks="${flashrom_info.part_count}"`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
headers = `200 OK
|
headers = `200 OK
|
||||||
|
Connection: Close
|
||||||
|
wtv-connection-close: true
|
||||||
Content-type: text/html`
|
Content-type: text/html`
|
||||||
|
|
||||||
data = `<html>
|
data = `<html>
|
||||||
|
|||||||
Reference in New Issue
Block a user