feat: Dynamic page content (#585)

This commit is contained in:
Kroese
2024-01-21 18:35:55 +01:00
committed by GitHub
parent 2c7cea042f
commit 1e13258bc9
10 changed files with 311 additions and 75 deletions

View File

@@ -7,6 +7,7 @@ info () { printf "%b%s%b" "\E[1;34m \E[1;36m" "$1" "\E[0m\n" >&2; }
error () { printf "%b%s%b" "\E[1;31m " "ERROR: $1" "\E[0m\n" >&2; }
file="/run/shm/dsm.url"
info="/run/shm/msg.html"
page="/run/shm/index.html"
address="/run/shm/qemu.ip"
shutdown="/run/shm/qemu.end"
@@ -80,6 +81,7 @@ if [[ "$location" != "20.20"* ]]; then
HTML="${HTML/\[5\]/}"
echo "$HTML" > "$page"
echo "$body" > "$info"
else