Files
felhom.eu/documentation/audits/linetest-2026-10-27/tools/gsetup.sh
T
admin acd79a78cc
gates / gates (push) Successful in 2m29s
Release block 2026-10-27: hub 0.173.0, agent 0.167.0, controller 0.346.0 released; R-1250 fixed the same day and proven; ten rows closed, R-1312 opened
- audits/linetest-2026-10-27/: the hold failed four times as built (qBittorrent drains ~14 s), the fix 710ceac, the test
  through the hold on 0.346.0-rc.1 (94.5 Mbit/s, the limit back exactly), teardown.
- audits/release-2026-10-27/: builds, agent release + signed updates, per-box and global floors, box walk.
- 09 §3 decisions 269 (R-1250 fix the same day) and 270 (R-1218 live proof waived); D55's window result in 268.
- 08 §: the drain-wait design line. STATUS, CONTEXT, register (223 -> 214).
2026-10-27 15:45:59 +01:00

20 lines
1.5 KiB
Bash
Executable File

#!/bin/sh
# gsetup.sh — INSIDE guest 9201 (R-1250 live test, 2026-10-27): a SPARSE 3 GiB seed file in the throwaway qBittorrent's
# downloads folder, a private torrent of it made by qBittorrent's own creator, its peer settings (fixed port 6881, no
# DHT/PeX/LSD so it talks to the one LAN peer only). Prints the container IP and the torrent's hash. No secret printed.
set -eu
Q=/root/r1250/qbg.sh
D=/mnt/felhom-drives/hdd_1/userdata/media/torrents/r1250
mkdir -p $D; [ -f $D/r1250-seed.bin ] || truncate -s 3G $D/r1250-seed.bin
chown -R 1000:1000 $D 2>/dev/null || true
ls -ls $D
sh $Q app/setPreferences 'json={"listen_port":6881,"upnp":false,"dht":false,"pex":false,"lsd":false,"queueing_enabled":false,"max_connec_per_torrent":20}'
T=$(sh $Q torrentcreator/addTask 'sourcePath=/downloads/r1250/r1250-seed.bin&private=true&startSeeding=true&comment=R-1250 live proof, LAN only')
echo "addTask: $T"; ID=$(echo "$T" | grep -oE '"taskID":"[^"]+"' | cut -d'"' -f4)
i=0; while [ $i -lt 120 ]; do S=$(sh $Q "torrentcreator/status?taskID=$ID"); echo "$S" | grep -q '"Finished"' && break; i=$((i+1)); sleep 2; done
echo "creator: $(echo "$S" | grep -oE '"(status|errorMessage|pieceSize)":[^,]*' | paste -sd' ')"
docker exec qbittorrent sh -c 'ls /config/qBittorrent/BT_backup 2>/dev/null | head' || true
sh $Q torrents/info | python3 -c 'import json,sys
for t in json.load(sys.stdin): print("torrent", t["name"], t["hash"], t["state"], "size", t["size"], "private", t.get("private"))'
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' qbittorrent