wok annotate dropbear/stuff/sshx @ rev 10917

dropbear: add sshx (ssh -X fake)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 03 19:00:00 2011 +0200 (2011-08-03)
parents
children 0a4cc644e631
rev   line source
pascal@10917 1 #!/bin/sh
pascal@10917 2
pascal@10917 3 xdbclient()
pascal@10917 4 {
pascal@10917 5 read host type data
pascal@10917 6 n=10; dpy=localhost:$n
pascal@10917 7 dbclient -R $((6000+$n)):localhost:6000 "$@" \
pascal@10917 8 "xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM"
pascal@10917 9 }
pascal@10917 10
pascal@10917 11 case "$TERM" in
pascal@10917 12 xterm*|rxvt*) xauth list :0 | xdbclient "$@" ;;
pascal@10917 13 *) dbclient "$@" ;;
pascal@10917 14 esac