Browse Source

convenience pi update script

Thomas Buck 8 months ago
parent
commit
944c3a0249
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      pi.sh

+ 24
- 0
pi.sh View File

@@ -0,0 +1,24 @@
1
+#!/bin/sh
2
+
3
+echo "Stopping running script"
4
+ssh rpi-rgb-matrix "sudo systemctl disable --now led"
5
+echo
6
+echo
7
+
8
+echo "Syncing code"
9
+rsync -avh -e ssh ./*.py rpi-rgb-matrix:~/rgb-matrix-visualizer
10
+echo
11
+echo
12
+
13
+echo "Syncing images"
14
+rsync -avh -e ssh ./images/* rpi-rgb-matrix:~/rgb-matrix-visualizer/images
15
+echo
16
+echo
17
+
18
+echo "Syncing fonts"
19
+rsync -avh -e ssh ./fonts/* rpi-rgb-matrix:~/rgb-matrix-visualizer/fonts
20
+echo
21
+echo
22
+
23
+echo "Starting script"
24
+ssh rpi-rgb-matrix "sudo systemctl enable --now led"

Loading…
Cancel
Save