Files
raspberry_scripts/led-on.service
2026-01-27 21:33:04 +01:00

13 lines
266 B
Desktop File

[Unit]
Description=Enciende el LED al arrancar
After=multi-user.target
[Service]
Type=oneshot
EnvironmentFile=/opt/raspberry_scripts/led_config.conf
ExecStart=/bin/sh -c '/usr/bin/gpioset ${CHIP} ${LINE}=1'
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target