Fixed Linux install script to accept cookies in addition to meshid.

Ylian Saint-Hilaire committed Jun 23, 2020 at 12:11 UTC 3de4a33d1c4d739b47db6d80dd31dea3bb85b746
2 files changed +12 -4
agents/meshinstall-linux.sh
+2 -2
@@ -55,7 +55,7 @@ CheckInstallAgent() {
55 url=$1
56 meshid=$2
57 meshidlen=${#meshid}
58 - if [ $meshidlen -eq 64 ]
58 + if [ $meshidlen -gt 63 ]
59 then
60 machineid=0
61 machinetype=$( uname -m )
@@ -118,7 +118,7 @@ CheckInstallAgent() {
118 fi
119
120 else
121 - echo "MeshID is not correct, must be 64 characters long."
121 + echo "MeshID is not correct, must be at least 64 characters long."
122 fi
123 else
124 echo "URI and/or MeshID have not been specified, must be passed in as arguments."
views/player.handlebars
+10 -2
@@ -260,7 +260,7 @@
260 else if (recFileMetadata.protocol == 101) {
261 // Intel AMT Redirection
262 recFileProtocol = 101;
263 - x += '<br /><br /><span style=color:gray>Press [space] to play/pause.</span>';
263 + x += '<br /><br /><span style=color:gray>' + "Press [space] to play/pause." + '</span>';
264 QE('PlayButton', true);
265 QE('PauseButton', false);
266 QE('RestartButton', false);
@@ -275,7 +275,7 @@
275 else if (recFileMetadata.protocol == 200) {
276 // Intel AMT Midstream KVM
277 recFileProtocol = 200;
278 - x += '<br /><br /><span style=color:gray>Press [space] to play/pause.</span>';
278 + x += '<br /><br /><span style=color:gray>' + "Press [space] to play/pause." + '</span>';
279 QE('PlayButton', true);
280 QE('PauseButton', false);
281 QE('RestartButton', false);
@@ -367,6 +367,14 @@
367 }
368 }
369
370 + // This is a PNG screenshot of the display, load it and render it.
371 + if ((type == 3) && (recFileProtocol == 200)) {
372 + var tile = new Image();
373 + tile.src = "data:image/png;base64," + btoa(data);
374 + tile.onload = function () { amtDesktop.canvas.drawImage(tile, 0, 0); }
375 + tile.error = function () { }
376 + }
377 +
378 if (playing) { readNextBlock(processBlock); }
379 }
380