wok diff dropbear/stuff/sshx @ rev 22507

Up pkg-config (0.29.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 01 15:09:22 2020 +0100 (2020-01-01)
parents be6d6007394f
children
line diff
     1.1 --- a/dropbear/stuff/sshx	Fri Jan 11 16:32:25 2019 +0100
     1.2 +++ b/dropbear/stuff/sshx	Wed Jan 01 15:09:22 2020 +0100
     1.3 @@ -53,7 +53,7 @@
     1.4  	pppsvr="$ppp $n ${3:-proxyarp} notty >/dev/null"
     1.5  	sshcmd="nc -ulp $5 -e $pppsvr"
     1.6  	udpcmd="nc -u $ipsvr $5"
     1.7 -	[ "$6" == "test" ] && sshcmd="nc -ulp $5 -e nc 127.0.0.1 22" &&
     1.8 +	[ "$6" = "test" ] && sshcmd="nc -ulp $5 -e nc 127.0.0.1 22" &&
     1.9  	udpcmd="dbclient -y -J \"nc -u $ipsvr $5\" ${1%@*}@127.0.0.1 $pppsvr"
    1.10  	[ -n "$5" ] && arg="noipdefault pty '$udpcmd'" && $ssh -f ${1/:/ -p } "$sshcmd"
    1.11  	eval $ppp $arg ipparam pppssh$$
    1.12 @@ -66,7 +66,7 @@
    1.13  	p=5900
    1.14  	while netstat -tln | grep -q ":$p " ; do p=$(($p+1)); done
    1.15  	[ -r /dev/input/mice ] || echo "Warning: Cannot read mouse input." 1>&2
    1.16 -	r=${1%/*}; svr=${1#*/}; [ "$svr" == "$1" ] && svr=127.0.0.1
    1.17 +	r=${1%/*}; svr=${1#*/}; [ "$svr" = "$1" ] && svr=127.0.0.1
    1.18  	dbclient -y -f -N -L $p:$svr:${2:-5900} ${r/:/ -p }
    1.19  	fbvnc 127.0.0.1 $p
    1.20  	kill $(netstat -tlnp 2> /dev/null | \