]> code.delx.au - monosys/blobdiff - bin/ssh-screen-wrapper
Rearranged, tidied, deleted things, moved things
[monosys] / bin / ssh-screen-wrapper
diff --git a/bin/ssh-screen-wrapper b/bin/ssh-screen-wrapper
deleted file mode 100755 (executable)
index 51fe264..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash -e
-
-hostname="$(basename "$0")"
-local_hostname="${hostname}.localnet"
-public_hostname="p${hostname}"
-
-if grep -q "^Host ${hostname}$" ~/.ssh/config; then
-       true
-elif ping -c1 -t1 "$local_hostname" &> /dev/null; then
-       hostname="$local_hostname"
-else
-       hostname="$public_hostname"
-fi
-
-exec ssh "$hostname" "$@" -t "bash --login -c 'screen -dR'"
-