mirror of
https://github.com/pjandro/fbS1Scripts.git
synced 2025-12-13 02:54:56 +03:00
add run.sh without sleep before klipper starting
This commit is contained in:
parent
b13faecefd
commit
8a22440835
19
adds/run.sh
Normal file
19
adds/run.sh
Normal 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
7
changeRunSh.sh
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user