#!/bin/sh host=$(basename "$0") case "$host" in x11-ssh-host) host=$1 ;; esac if [ "$DISPLAY" -a ! -t 0 ]; then exec xterm -T "$host" -e \ autossh "$host" -- -t screen -xRR else exec \ autossh "$host" -- -t screen -xRR fi