16 lines
360 B
SYSTEMD
16 lines
360 B
SYSTEMD
[Unit]
|
|
Description=Control Raspberry Pi ACT (activity) LED
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=sh -c "echo 1 > /sys/class/leds/ACT/brightness"
|
|
ExecStop=sh -c "echo 0 > /sys/class/leds/ACT/brightness"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|
|
# systemctl daemon-reload
|
|
# systemctl enable rpi-led-act.service
|
|
# systemctl start rpi-led-act.service
|