Pārlūkot izejas kodu

convenience pi update script

Thomas Buck 1 gadu atpakaļ
vecāks
revīzija
944c3a0249
1 mainītis faili ar 24 papildinājumiem un 0 dzēšanām
  1. 24
    0
      pi.sh

+ 24
- 0
pi.sh Parādīt failu

@@ -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"

Notiek ielāde…
Atcelt
Saglabāt