From 2973d0c78e9b8eed3c5af239927c6bd36af64604 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 13 Mar 2019 02:50:42 -0400 Subject: initial commit --- src/start_slirp.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/start_slirp.sh (limited to 'src/start_slirp.sh') diff --git a/src/start_slirp.sh b/src/start_slirp.sh new file mode 100644 index 0000000..4f3ad40 --- /dev/null +++ b/src/start_slirp.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +# Configurable stuff: + +TTY=/dev/ttyS0 # serial port to use +BAUD=4800 # must match FujiChat conf + +# This setting is only needed if you're using an AtariMax (Steve Tucker) +# auto-sensing SIO2PC as your serial device. +TUCKER_SIO2PC_HACK="yes" + +# DELAY is needed on some (most?) systems because e.g. atariserver tries +# to run before the atarisio module is fully initialized. Choose one: + +# No delay: +#DELAY="true" + +# 1 second: +#DELAY="sleep 1" + +# 1/4 second (may not work on old Linux installs): +DELAY="usleep 250000" + +slirp "tty $TTY" "mru 576" "mtu 576" "baudrate $BAUD" & + +if [ "$TUCKER_SIO2PC_HACK" = "yes" ]; then + sleep 1 + ./clear_rts +fi -- cgit v1.2.3