Add support for containers and simulation

This commit is contained in:
2022-01-02 16:23:35 +01:00
parent 25d8c4a3bb
commit ad86a39219
7 changed files with 35 additions and 0 deletions

12
daemons/simulator/start.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
PTY=0
if [ -c /dev/pts/0 ]; then
PTY=1
fi
sed -i "s/ttyACM0/pts\/${PTY}/" /opt/dcc/config.ini
qemu-system-avr -machine uno -bios /io/CommandStation-EX-uno-*.elf -serial pty -daemonize
/opt/dcc/net-to-serial.py