wok-stable view dropbear/stuff/sshx @ rev 11575

Up: novnc 201111004 (from godane's wok)

# Rules to gen a SliTaz package suitable for Tazpkg.
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:19 2012 +0100 (2012-01-02)
parents 409cb72cb3e0
children 0078fa9a46a4
line source
1 #!/bin/sh
3 xdbclient()
4 {
5 read host type data
6 svr=$(echo $DISPLAY | sed 's/.*:\([0-9]*\).*/\1/')
7 n=$((10+$svr)); dpy=localhost:$n
8 dbclient -R $((6000+$n)):localhost:$((6000+$svr)) "$@" \
9 "xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM"
10 }
12 case "$DISPLAY" in
13 '') dbclient "$@" ;;
14 *) xauth list $DISPLAY | xdbclient "$@" ;;
15 esac