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

14 lines
345 B
Desktop File

[Unit]
Description=Apaga el LED al apagar o reiniciar
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
EnvironmentFile=/opt/raspberry_scripts/led_config.conf
ExecStart=/bin/sh -c '/usr/bin/gpioset ${CHIP} ${LINE}=0'
RemainAfterExit=yes
[Install]
WantedBy=shutdown.target reboot.target halt.target