# HG changeset patch # User Pascal Bellard # Date 1312390800 -7200 # Node ID 409cb72cb3e01281fe7516932a20c52dee81ad70 # Parent 003018236fb9c001c6418d523e413617e79b633f dropbear: add sshx (ssh -X fake) diff -r 003018236fb9 -r 409cb72cb3e0 dropbear/receipt --- a/dropbear/receipt Tue Aug 02 10:24:00 2011 +0200 +++ b/dropbear/receipt Wed Aug 03 19:00:00 2011 +0200 @@ -47,6 +47,7 @@ mkdir -p $fs/etc cp -a stuff/dropbear $fs/etc cp -a stuff/init.d $fs/etc + cp -a stuff/sshx $fs/usr/bin touch $fs/etc/dropbear/dropbear_dss_host_key \ $fs/etc/dropbear/dropbear_rsa_host_key diff -r 003018236fb9 -r 409cb72cb3e0 dropbear/stuff/sshx --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dropbear/stuff/sshx Wed Aug 03 19:00:00 2011 +0200 @@ -0,0 +1,14 @@ +#!/bin/sh + +xdbclient() +{ + read host type data + n=10; dpy=localhost:$n + dbclient -R $((6000+$n)):localhost:6000 "$@" \ + "xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM" +} + +case "$TERM" in +xterm*|rxvt*) xauth list :0 | xdbclient "$@" ;; +*) dbclient "$@" ;; +esac