From 3d26f9570fe110c06268f75b5fc651200da74e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 9 Nov 2021 15:01:19 +0100 Subject: [PATCH] Update start.sh --- start.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/start.sh b/start.sh index 1c704d3..930041f 100644 --- a/start.sh +++ b/start.sh @@ -1,3 +1,8 @@ -screen -m -d rackled -sleep 5 -screen -S python -X stuff 'python3 /home/pi/server-rack-led/main.py\n' +#!bin/bash + +SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +echo $SCRIPT_DIR + +# screen -m -d rackled +# sleep 5 +# screen -S python -X stuff 'python3 /home/pi/server-rack-led/main.py\n'