summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2022-02-24 23:24:46 -0500
committerAndrew Cady <d@jerkface.net>2022-10-09 13:53:09 -0400
commit6de4c628eb311ff6a577cca8fad3135e07ccd226 (patch)
tree990d02c9c379eef6f6359c952e73b035dade2bdb
parent697623c873a56cdcc5c701c0ce2bc842d448511f (diff)
fix usage bug
-rwxr-xr-xdot/local/bin/xvnc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dot/local/bin/xvnc b/dot/local/bin/xvnc
index ab4fb00..ee98092 100755
--- a/dot/local/bin/xvnc
+++ b/dot/local/bin/xvnc
@@ -17,7 +17,7 @@ direct_connection()
17{ 17{
18 rando=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c15) && [ "$rando" ] 18 rando=$(tr -dc A-Za-z0-9 < /dev/urandom | head -c15) && [ "$rando" ]
19 remote_socket_file=/tmp/x11vnc.$rando.socket 19 remote_socket_file=/tmp/x11vnc.$rando.socket
20 port=$((5500 + $(tr -dc 1-9|head -n3))) 20 port=$((5500 + $(tr -dc 1-9 </dev/urandom | head -c3 || true)))
21 21
22 ssh -n \ 22 ssh -n \
23 -o ControlPath=none \ 23 -o ControlPath=none \
@@ -52,7 +52,7 @@ share_display()
52 set -x 52 set -x
53 fi 53 fi
54 54
55 port=$((5500 + $(tr -dc 1-9|head -n3))) 55 port=$((5500 + $(tr -dc 1-9 </dev/urandom | head -c3 || true)))
56 OUR_TMP=$(mktemp -d) || exit 56 OUR_TMP=$(mktemp -d) || exit
57 local_socket_file=$OUR_TMP/x11vnc.socket 57 local_socket_file=$OUR_TMP/x11vnc.socket
58 ssh_control=$OUR_TMP/ssh.socket 58 ssh_control=$OUR_TMP/ssh.socket