Created
November 12, 2024 14:42
-
-
Save thegreatco/79d21f14454d987cbd00077a4026709a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=UCTRONICS Raspberry Pi Status | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStartPre=/bin/bash -c 'if [ ! -d "/opt/UCTRONICS" ]; then git clone https://github.com/UCTRONICS/U6143_ssd1306.git /opt/UCTRONICS; cd /opt/UCTRONICS/C; make clean && make; cp /opt/UCTRONICS/C/display /usr/bin/UCTRONICS_display; fi' | |
ExecStart=/usr/bin/UCTRONICS_display | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment