1
0
mirror of https://github.com/PDP-10/its.git synced 2026-02-26 17:03:20 +00:00

Update start scripts for PDP-10 emulators other than SIMH KA10.

This commit is contained in:
Lars Brinkhoff
2020-05-22 14:59:37 +02:00
parent 85910c44c7
commit 7e396a61af
3 changed files with 81 additions and 10 deletions

View File

@@ -4,5 +4,40 @@
SUDO=sudo
#NET_DEFAULT_IF=eth1
EXIT=:
trap "" QUIT INT TERM
started() {
EXIT="$EXIT;stop $1 $2"
trap "$EXIT" EXIT
echo "$1 started, pid $2"
}
stop() {
echo -n "Stopping $1... "
kill "$2" 2> /dev/null
sleep 2
kill -9 "$2" 2> /dev/null
echo "OK"
}
help() {
cat <<EOF
This start script takes several command line arguments:
help - Display this help text.
EOF
touch out/klh10/nohelp
}
test -f out/klh10/nohelp || help
while test -n "$1"; do
"$1"
shift
done
cd build/klh10
$SUDO KLH10_NET_DEFAULT_IF=$NET_DEFAULT_IF ./kn10-ks-its dskdmp.ini

View File

@@ -17,6 +17,19 @@ stop() {
echo "OK"
}
help() {
cat <<EOF
This start script takes several command line arguments:
help - Display this help text.
EOF
touch out/pdp10-kl/nohelp
}
test -f out/pdp10-kl/nohelp || help
while test -n "$1"; do
"$1"
shift

View File

@@ -1,22 +1,45 @@
#!/bin/sh
gt40() {
trap kill_gt40 0
(sleep 3; tools/simh/BIN/pdp11 build/simh/gt40 >gt40.log 2>&1) &
GT40="$!"
echo "GT40 started, pid $GT40"
EXIT=:
trap "" QUIT INT TERM
started() {
EXIT="$EXIT;stop $1 $2"
trap "$EXIT" EXIT
echo "$1 started, pid $2"
}
kill_gt40() {
kill "$GT40"
sleep 1
kill -9 "$GT40"
echo "GT40 stopped"
stop() {
echo -n "Stopping $1... "
kill "$2" 2> /dev/null
sleep 2
kill -9 "$2" 2> /dev/null
echo "OK"
}
gt40() {
(sleep 3; tools/simh/BIN/pdp11 build/simh/gt40 >gt40.log 2>&1) &
started GT40 "$!"
}
help() {
cat <<EOF
This start script takes several command line arguments:
help - Display this help text.
gt40 - Start a GT40 emulator.
EOF
touch out/simh/nohelp
}
test -f out/simh/nohelp || help
while test -n "$1"; do
"$1"
shift
done
tools/simh/BIN/pdp10 build/simh/boot
exit 0