add stuff
This commit is contained in:
commit
26cd15d899
65 files changed
+4820
No files matched your search
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Serves root/tools/recon.html + root/tools/pub/* on port 9000 (or $1).
|
||||
set -euo pipefail
|
||||
HERE="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$HERE/../tools"
|
||||
PORT="${1:-9000}"
|
||||
IP="$(hostname -I 2>/dev/null | awk '{print $1}')"
|
||||
[ -n "$IP" ] || IP="<host-ip>"
|
||||
echo "TV URL: http://$IP:$PORT/recon.html"
|
||||
echo "Pub dir: $(pwd)/pub"
|
||||
echo "Captures:$(pwd)/captures"
|
||||
exec python3 server.py "$PORT"
|
||||
Reference in new issue
Block a user