chore: add Makefile and Debian packaging
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=EZCOO HDMI Matrix MQTT bridge
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/ezcoo-usb-control --config /etc/ezcoo-usb-control/config.yaml
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
User=ezcoo
|
||||
SupplementaryGroups=dialout
|
||||
|
||||
# Allow reading an optional environment file for secrets.
|
||||
# EnvironmentFile=-/etc/ezcoo-usb-control/env
|
||||
|
||||
# Hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
DeviceAllow=char-ttyUSB rw
|
||||
DeviceAllow=char-ttyACM rw
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user