From 90ab8a596da9a6f34c02e1a9e3461c637e155659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Fri, 4 Mar 2022 13:42:55 -0300 Subject: [PATCH] core: tools: scripts: First version with red-pill MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- core/tools/scripts/bootstrap.sh | 7 +++++++ core/tools/scripts/red-pill | 5 +++++ 2 files changed, 12 insertions(+) create mode 100755 core/tools/scripts/bootstrap.sh create mode 100755 core/tools/scripts/red-pill diff --git a/core/tools/scripts/bootstrap.sh b/core/tools/scripts/bootstrap.sh new file mode 100755 index 0000000000..e75ca2c812 --- /dev/null +++ b/core/tools/scripts/bootstrap.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Exit immediately if a command exits with a non-zero status +set -e + +SCRIPTS_PATH=$(dirname "$0") +cp $PWD/$SCRIPTS_PATH/red-pill /usr/bin/ diff --git a/core/tools/scripts/red-pill b/core/tools/scripts/red-pill new file mode 100755 index 0000000000..8a0298196a --- /dev/null +++ b/core/tools/scripts/red-pill @@ -0,0 +1,5 @@ +echo "You took the red pill." +echo "You stay in Wonderland, and I show you how deep the rabbit hole goes." +echo "Remember, all I'm offering is the truth. Nothing more." +echo "Exiting from docker, welcome to the real world." +sshpass -p raspberry ssh -o StrictHostKeyChecking=no pi@localhost