feat: add TCP staging path for FreeDOS

This commit is contained in:
2026-08-16 14:46:33 +09:00
parent f662c4b8f7
commit e5781fc168
2 changed files with 87 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
@echo off
rem Pull a host-built TCP staging bundle into the authoritative C:\FEC tree.
rem QEMU user networking exposes the host as 10.0.2.2. HTGET and UNZIP are
rem supplied by the installed FreeDOS network tools.
if "%1"=="" goto usage
if exist C:\FEC\STAGE.ZIP del C:\FEC\STAGE.ZIP
htget -o C:\FEC\STAGE.ZIP %1
if errorlevel 1 goto fail
unzip -o C:\FEC\STAGE.ZIP -d C:\FEC
if errorlevel 1 goto fail
if exist C:\FEC\TCPSTG.OK del C:\FEC\TCPSTG.OK
echo OK>C:\FEC\TCPSTG.OK
goto done
:usage
echo usage: TCP-STAGE.BAT http://10.0.2.2:8000/STAGE.ZIP
goto done
:fail
echo FAIL>C:\FEC\TCPSTG.FAIL
:done