arv-v-dsm/run/server.sh
2023-04-16 13:21:54 +02:00

11 lines
323 B
Bash

#!/usr/bin/env bash
set -eu
HTML="<HTML><BODY><H1><CENTER>Please wait while Virtual DSM 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 "================================================"
done