about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2024-05-22 18:41:38 -0400
committerJune McEnroe <june@causal.agency>2024-05-22 18:41:38 -0400
commitc210a59746c902ea4b083d536912b90621d0afa5 (patch)
treef229e04f6298f233cf927393cedb38fe57e41d7e /scripts
parentRemove scripts related to chroot for ssh (diff)
downloadcatgirl-c210a59746c902ea4b083d536912b90621d0afa5.tar.gz
catgirl-c210a59746c902ea4b083d536912b90621d0afa5.zip
Add example reconnect script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/reconnect.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/reconnect.sh b/scripts/reconnect.sh
new file mode 100644
index 0000000..92d9668
--- /dev/null
+++ b/scripts/reconnect.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -u
+
+while :; do
+	catgirl "$@"
+	status=$?
+	if [ $status -ne 69 ]; then
+		exit $status
+	fi
+done