From 0f4c916f7819a35b777455118a0d5df9ce1500ae Mon Sep 17 00:00:00 2001
From: Stefan Haun <tux@netz39.de>
Date: Sun, 3 Nov 2024 00:09:46 +0100
Subject: [PATCH] Start tmux detached because there is no Term in CRON

---
 files/wittgenstein/reboot.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/wittgenstein/reboot.sh b/files/wittgenstein/reboot.sh
index e463089..f6b5621 100755
--- a/files/wittgenstein/reboot.sh
+++ b/files/wittgenstein/reboot.sh
@@ -13,7 +13,7 @@ sleep 30
 
 cd /home/pi
 echo 'start ampel controller'
-tmux new-session -s ampel 'cd /home/pi/netz39_space_notification/raspberry/ledcontrol && ./ledcontrol'
+tmux new-session -s ampel -d 'cd /home/pi/netz39_space_notification/raspberry/ledcontrol && ./ledcontrol'
 
 echo 'start lever controller'
 tmux new-window -t ampel:1 'cd /home/pi/netz39_space_notification/raspberry/statusswitch && ./statusswitch'