flashrom system updates

- fix bugs
- more WNI-like flow path
- make scripts use `service_name` variable so that they should work in a renamed service (eg not wtv-flashrom, untested)
This commit is contained in:
zefie
2021-08-09 18:16:54 -04:00
parent 7ae8fdc816
commit a078e58ce0
6 changed files with 26 additions and 27 deletions

View File

@@ -25,7 +25,7 @@ if (request_headers.query.raw || bf0app_update) {
headers = "200 OK\n"
if (request_headers.query.path) {
headers += "Content-type: text/html\n"
headers += "wtv-visit: wtv-flashrom:/initiate-lc2-download?path=" + request_headers.query.path;
headers += "wtv-visit: " + service_name + ":/initiate-lc2-download?path=" + request_headers.query.path;
data = '';
} else {
var errpage = doErrorPage(404)