2022-12-07 14:22:06 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# The run.sh file must be the entry point of the docker container. It is not meant to be run by a user it a terminal.
|
|
|
|
# Please use update.sh instead
|
|
|
|
|
2022-12-07 16:31:32 +01:00
|
|
|
ls -la /dev/ttyTIC
|
2022-12-07 14:22:06 +01:00
|
|
|
echo "Initializing serial port"
|
2022-12-07 16:31:32 +01:00
|
|
|
stty -F /dev/ttyTIC 9600 raw cs7 parenb & # make it async so if it locks, it doesnt lock everything
|
|
|
|
sleep 1
|
2022-12-07 14:22:06 +01:00
|
|
|
|
|
|
|
echo "Starting TIC server"
|
|
|
|
java -cp res -jar /data/bin/tic.jar
|