blob: 3ad62026639d2432f57576526bcee3ab3ba176df [file] [log] [blame]
Jan Kundrát713b2c12018-07-04 20:30:11 +02001[Unit]
2Description=Indicate a successful boot via LEDs
3Requires=multi-user.target
4After=multi-user.target
5
6[Service]
7Type=oneshot
8ExecStartPre=/bin/sh -c '[ "$(/bin/systemctl list-units --failed --all --no-legend --no-pager)" == "" ]'
9ExecStart=/bin/sh -c 'echo default-on > /sys/class/leds/status-ok/trigger'