]> gitweb.fluxo.info Git - scripts.git/commitdiff
Changing symlink scheme of the shell wrapper
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Jun 2013 20:59:33 +0000 (17:59 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 1 Jun 2013 20:59:33 +0000 (17:59 -0300)
assh [changed from file to symlink]
shell [changed from symlink to file mode: 0755]
shelll
shells

diff --git a/assh b/assh
deleted file mode 100755 (executable)
index fb4c8b6633b8334975c229272f011a14519ed39c..0000000000000000000000000000000000000000
--- a/assh
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-#
-# simple autossh and screen wrapper
-#
-
-BASENAME="`basename $0`"
-DEST="$1"
-COMMAND="$2"
-
-if [ -z "$DEST" ]; then
-  exit 1
-fi
-
-if [ "$BASENAME" == "asshs" ] || [ "$BASENAME" == "shells" ]; then
-  # Remote screen shell using autossh
-  if [ "$COMMAND" == "root" ]; then
-    autossh $DEST -t -- sudo screen -x
-  else
-    autossh $DEST -t -- screen -x $COMMAND
-  fi
-elif [ "$BASENAME" == "shelll" ]; then
-  # Local screen shell
-  wscreen $*
-else
-  # Remote shell using autossh
-  autossh $DEST -t -- $COMMAND
-fi
diff --git a/assh b/assh
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..03e813f325726089fb7585ca305169852a57fbce
--- /dev/null
+++ b/assh
@@ -0,0 +1 @@
+shell
\ No newline at end of file
diff --git a/shell b/shell
deleted file mode 120000 (symlink)
index daa19cecff2849a06f89ce53461d761485d87c52..0000000000000000000000000000000000000000
--- a/shell
+++ /dev/null
@@ -1 +0,0 @@
-assh
\ No newline at end of file
diff --git a/shell b/shell
new file mode 100755 (executable)
index 0000000000000000000000000000000000000000..fb4c8b6633b8334975c229272f011a14519ed39c
--- /dev/null
+++ b/shell
@@ -0,0 +1,27 @@
+#!/bin/bash
+#
+# simple autossh and screen wrapper
+#
+
+BASENAME="`basename $0`"
+DEST="$1"
+COMMAND="$2"
+
+if [ -z "$DEST" ]; then
+  exit 1
+fi
+
+if [ "$BASENAME" == "asshs" ] || [ "$BASENAME" == "shells" ]; then
+  # Remote screen shell using autossh
+  if [ "$COMMAND" == "root" ]; then
+    autossh $DEST -t -- sudo screen -x
+  else
+    autossh $DEST -t -- screen -x $COMMAND
+  fi
+elif [ "$BASENAME" == "shelll" ]; then
+  # Local screen shell
+  wscreen $*
+else
+  # Remote shell using autossh
+  autossh $DEST -t -- $COMMAND
+fi
diff --git a/shelll b/shelll
index daa19cecff2849a06f89ce53461d761485d87c52..03e813f325726089fb7585ca305169852a57fbce 120000 (symlink)
--- a/shelll
+++ b/shelll
@@ -1 +1 @@
-assh
\ No newline at end of file
+shell
\ No newline at end of file
diff --git a/shells b/shells
index daa19cecff2849a06f89ce53461d761485d87c52..03e813f325726089fb7585ca305169852a57fbce 120000 (symlink)
--- a/shells
+++ b/shells
@@ -1 +1 @@
-assh
\ No newline at end of file
+shell
\ No newline at end of file