aboutsummaryrefslogtreecommitdiff
path: root/src/start_getty.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-03-13 02:50:42 -0400
committerB. Watson <yalhcru@gmail.com>2019-03-13 02:50:42 -0400
commit2973d0c78e9b8eed3c5af239927c6bd36af64604 (patch)
treea0fdfe7201303edd11c6d86015ef4f79796fcf0f /src/start_getty.sh
downloadfujichat-2973d0c78e9b8eed3c5af239927c6bd36af64604.tar.gz
initial commit
Diffstat (limited to 'src/start_getty.sh')
-rw-r--r--src/start_getty.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/start_getty.sh b/src/start_getty.sh
new file mode 100644
index 0000000..7195d5e
--- /dev/null
+++ b/src/start_getty.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+ATR_IMAGE=${1-dumb.atr}
+TTY=/dev/ttyS0
+
+fuser -k $TTY 2&>/dev/null # make sure nobody's using the port...
+$DELAY
+fuser -k -9 $TTY 2&>/dev/null # Just in case...
+$DELAY
+modprobe atarisio port=$TTY
+$DELAY
+atariserver $ATR_IMAGE
+#atariserver autorun.sys # fails when run from MyPicoDOS, why?
+$DELAY
+rmmod atarisio
+$DELAY
+strace -o/dev/null agetty -L $TTY 4800 vt100 &
+$DELAY
+./clear_rts