]> gitweb.fluxo.info Git - termplex.git/commitdiff
Use DIRNAME to invoke wtmux an wscreen
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 9 Oct 2017 17:32:54 +0000 (14:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 9 Oct 2017 17:32:54 +0000 (14:32 -0300)
shell

diff --git a/shell b/shell
index c5612dcb8fab7e56e72adccdb718b827e4026e69..b3ebdfc380f632d0e5827fafaa0971b9456ee398 100755 (executable)
--- a/shell
+++ b/shell
@@ -8,11 +8,12 @@
 # We're enforcing a random monitoring por for autossh
 # as some systems might deny reading /proc/net/tcp like
 # kernels with grsecurity patch.
+DIRNAME="`dirname $0`"
 BASENAME="`basename $0`"
 DEST="$1"
 COMMAND="$2"
-#LOCAL_MULTIPLEXER="wscreen"
-LOCAL_MULTIPLEXER="wtmux"
+#LOCAL_MULTIPLEXER="$DIRNAME/wscreen"
+LOCAL_MULTIPLEXER="$DIRNAME/wtmux"
 MONITORING="-M $(($RANDOM + 1024))"
 AUTOSSH="autossh $MONITORING"