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