Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stuff() {
- # if [ -n "$SSH_AUTH_SOCK" ]; then
- # echo "already have sock $SSH_AUTH_SOCK"
- # else
- # eval `ssh-agent`; ssh-add ~/.ssh/id_openwrt; ssh-add -l
- # fi
- screen -list | grep "Dead ???" > /dev/null && screen -wipe
- if [ -n "$STY" ]; then
- echo "already on screen on $STY DISPLAY $DISPLAY"
- # xauth extract - $DISPLAY | ssh -i ~/.ssh/id_openwrt localhost xauth merge -
- else
- echo "starting screen on $STY DISPLAY $DISPLAY"
- screen -d -RR
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement