mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 05:07:50 +02:00
* Replace custom made daemon with nmap-ncat * Use stderr to log ncat output * Refresh the branch
12 lines
266 B
Bash
Executable File
12 lines
266 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PTY=0
|
|
|
|
# if container is run with -ti pts/0 is already taken
|
|
if [ -c /dev/pts/0 ]; then
|
|
PTY=1
|
|
fi
|
|
|
|
qemu-system-avr -machine uno -bios /io/CommandStation-EX*.elf -serial pty -daemonize
|
|
ncat -n -k -l 2560 -o /dev/stderr </dev/pts/${PTY} >/dev/pts/${PTY}
|