arv-v-dsm/server.sh
2023-04-01 22:55:07 +02:00

12 lines
324 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