wok diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dropbear/stuff/sshx	Wed Aug 03 19:00:00 2011 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +#!/bin/sh
     1.5 +
     1.6 +xdbclient()
     1.7 +{
     1.8 +	read host type data
     1.9 +	n=10; dpy=localhost:$n
    1.10 +	dbclient -R $((6000+$n)):localhost:6000 "$@" \
    1.11 +		"xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM"
    1.12 +}
    1.13 +
    1.14 +case "$TERM" in
    1.15 +xterm*|rxvt*)	xauth list :0 | xdbclient "$@" ;;
    1.16 +*)		dbclient "$@" ;;
    1.17 +esac