summaryrefslogtreecommitdiff
path: root/bin/stbip
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-09-18 15:21:29 +0200
committerMarc Vertes <mvertes@free.fr>2020-09-18 15:21:29 +0200
commit7bac050e12201c40194d9df7bf711159f4acfa89 (patch)
treeb11531e3704ab9d06b02b72d6aec53383fac8fd3 /bin/stbip
parent737ca59089a60edd0447db39775a97ec7fb96268 (diff)
update
Diffstat (limited to 'bin/stbip')
-rwxr-xr-xbin/stbip7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/stbip b/bin/stbip
new file mode 100755
index 0000000..e4a51a0
--- /dev/null
+++ b/bin/stbip
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Check or establish a ssh tunnel for remote acess to syncthing GUI on bip.
+netstat -t4ln | grep 9090 ||
+ ssh -N -L 9090:127.0.0.1:8384 bip.im </dev/null >/dev/null 2>&1 &
+
+xdg-open http://127.0.0.1:9090