wok-6.x rev 19839
dropbear/sshx: allow localhost connection
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 12 10:07:24 2017 +0100 (2017-03-12) |
parents | e23fd880d81b |
children | 2c28bb804604 |
files | dropbear/stuff/sshx |
line diff
1.1 --- a/dropbear/stuff/sshx Sun Mar 12 09:47:07 2017 +0100 1.2 +++ b/dropbear/stuff/sshx Sun Mar 12 10:07:24 2017 +0100 1.3 @@ -16,8 +16,9 @@ 1.4 *) break ;; 1.5 esac 1.6 done 1.7 + xhost +localhost > /dev/null 2>&1 1.8 [ -n "$1" ] || set -- "${TERM:-xterm} -ls || ${TERM:-sakura} -l || xterm -ls" 1.9 - exec dbclient -f -R $((6000+$n)):localhost:$((6000+${svr%.*})) $r \ 1.10 + exec dbclient -y -f -R $((6000+$n)):localhost:$((6000+${svr%.*})) $r \ 1.11 "xauth add $dpy $data; export DISPLAY=$scr; $@ ; xauth remove $dpy" \ 1.12 </dev/null >/dev/null 1.13 }