From: James Bunton Date: Mon, 24 Jan 2022 08:15:37 +0000 (+1100) Subject: ssh-screen-wrapper: simplify X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/ebdc690c88c82d1d7f9d391374239f9644b4ed85 ssh-screen-wrapper: simplify --- diff --git a/hacks/ssh-screen-wrapper b/hacks/ssh-screen-wrapper index fe083cc..c40a490 100755 --- a/hacks/ssh-screen-wrapper +++ b/hacks/ssh-screen-wrapper @@ -3,16 +3,6 @@ set -eu hostname="$(basename "$0")" -local_hostname="${hostname}.localnet" -public_hostname="p${hostname}" - -if grep -Eq "^Host ${hostname}\b" ~/.ssh/config; then - true -elif ping -c1 -t1 "$local_hostname" &> /dev/null; then - hostname="$local_hostname" -else - hostname="$public_hostname" -fi while true; do clear