wok view 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
line source
1 #!/bin/sh
3 xdbclient()
4 {
5 read host type data
6 n=10; dpy=localhost:$n
7 dbclient -R $((6000+$n)):localhost:6000 "$@" \
8 "xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM"
9 }
11 case "$TERM" in
12 xterm*|rxvt*) xauth list :0 | xdbclient "$@" ;;
13 *) dbclient "$@" ;;
14 esac