add run.sh without sleep before klipper starting

This commit is contained in:
Ilia Korshunov 2025-06-24 03:04:37 +03:00
parent b13faecefd
commit 8a22440835
2 changed files with 26 additions and 0 deletions

19
adds/run.sh Normal file
View File

@ -0,0 +1,19 @@
#!/bin/bash
cd ~
tmux new-session -s my_session -d -c ~
tmux split-window -h -t my_session
tmux split-window -v -t my_session:0.0
tmux split-window -v -t my_session:0.1
tmux split-window -v -t my_session:0.2
tmux split-window -v -t my_session:0.3
tmux send-keys -t my_session:0.0 'sudo ./kp.sh' C-m
tmux send-keys -t my_session:0.1 'sudo ./moon.sh' C-m
tmux send-keys -t my_session:0.2 'sudo nginx' C-m
tmux send-keys -t my_session:0.3 'sudo ./local_mcu.sh' C-m
tmux attach-session -t my_session

7
changeRunSh.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
cat << EOF | chroot /server/tmp /bin/bash
cd /
mv ./run.sh run.sh_back
wget https://raw.githubusercontent.com/pjandro/fbS1Scripts/refs/heads/main/adds/run.sh
chmod +x ./run.sh
EOF