diff options
author | June McEnroe <june@causal.agency> | 2024-05-22 18:41:38 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2024-05-22 18:41:38 -0400 |
commit | c210a59746c902ea4b083d536912b90621d0afa5 (patch) | |
tree | f229e04f6298f233cf927393cedb38fe57e41d7e | |
parent | Remove scripts related to chroot for ssh (diff) | |
download | catgirl-c210a59746c902ea4b083d536912b90621d0afa5.tar.gz catgirl-c210a59746c902ea4b083d536912b90621d0afa5.zip |
Add example reconnect script
Diffstat (limited to '')
-rw-r--r-- | README.7 | 4 | ||||
-rw-r--r-- | scripts/reconnect.sh | 10 |
2 files changed, 14 insertions, 0 deletions
diff --git a/README.7 b/README.7 index 70ba7c8..cfc5af2 100644 --- a/README.7 +++ b/README.7 @@ -224,6 +224,10 @@ example .Xr tmux 1 configuration for multiple networks and automatic reconnects +.It Pa scripts/reconnect.sh +example script to restart +.Xr catgirl 1 +when it gets disconnected .It Pa scripts/notify-send.scpt .Xr notify-send 1 in AppleScript 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 |