summaryrefslogtreecommitdiff
path: root/farm/magnus/screen-magnus
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-12-18 18:18:49 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2020-12-18 18:18:49 +0100
commit81176a3c30d8f66f9003217342e57ef99b029c3a (patch)
tree2165aaa937481bab325e254e1bb26d4c85af9445 /farm/magnus/screen-magnus
parent0b543b9783d19345b5327361f3c9f17801bfd5c9 (diff)
parentca4bec8e62e92cd695307f461ee58d60eba68d52 (diff)
Merge remote-tracking branch 'origin/farm-magnus'
There is some info in this branch which I needed and missed because it was not in the master. Merge it and continue the work there.
Diffstat (limited to 'farm/magnus/screen-magnus')
-rwxr-xr-xfarm/magnus/screen-magnus10
1 files changed, 10 insertions, 0 deletions
diff --git a/farm/magnus/screen-magnus b/farm/magnus/screen-magnus
new file mode 100755
index 0000000..a54c8f9
--- /dev/null
+++ b/farm/magnus/screen-magnus
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+if [ $# == 0 ]; then
+ TARGET=${0#*-}
+else
+ TARGET=$1
+fi
+
+scp $(dirname $0)/screenrc $TARGET-mgr:
+ssh $TARGET-mgr -t screen -x -R -S ttyS1 -c screenrc /dev/ttyS1