wok rev 11593

dropbear/sshx: fallback to xterm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 13 10:51:19 2012 +0100 (2012-01-13)
parents b4e5ae364192
children 3b8e288fd269
files dropbear/stuff/sshx
line diff
     1.1 --- a/dropbear/stuff/sshx	Thu Jan 12 13:09:32 2012 +0100
     1.2 +++ b/dropbear/stuff/sshx	Fri Jan 13 10:51:19 2012 +0100
     1.3 @@ -6,7 +6,8 @@
     1.4  	svr=$(echo $DISPLAY | sed 's/.*:\([0-9]*\).*/\1/')
     1.5  	n=$((10+$svr)); dpy=localhost:$n
     1.6  	dbclient -R $((6000+$n)):localhost:$((6000+$svr)) "$@" \
     1.7 -		"xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM"
     1.8 +	    "xauth add $dpy $type $data; export DISPLAY=$dpy; $TERM || xterm" \
     1.9 +	    < /dev/null > /dev/null 2>&1
    1.10  }
    1.11  
    1.12  case "$DISPLAY" in