Skip to content

Instantly share code, notes, and snippets.

@thegreatco
Created November 12, 2024 14:42
Show Gist options
  • Save thegreatco/79d21f14454d987cbd00077a4026709a to your computer and use it in GitHub Desktop.
Save thegreatco/79d21f14454d987cbd00077a4026709a to your computer and use it in GitHub Desktop.
[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