This commit is contained in:
Kroese
2023-03-28 18:42:02 +02:00
parent 6c2d715cf9
commit 8105a0de8e
5 changed files with 31 additions and 36 deletions

View File

@@ -2,7 +2,8 @@
set -eu
RESPONSE="HTTP/1.1 200 OK\r\nConnection: close\r\n\r\n${2:-"OK"}\r\n"
HTML="<HTML><BODY><H1><CENTER>Please wait while Synology is installing...</CENTER></H1></BODY></HTML>"
RESPONSE="HTTP/1.1 200 OK\r\nConnection: close\r\n\r\n$HTML\r\n"
while { echo -en "$RESPONSE"; } | nc -lN "${1:-8080}"; do
echo "================================================"