浏览代码

convenience pi update script

Thomas Buck 1年前
父节点
当前提交
944c3a0249
共有 1 个文件被更改,包括 24 次插入0 次删除
  1. 24
    0
      pi.sh

+ 24
- 0
pi.sh 查看文件

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

正在加载...
取消
保存