diff options
| author | Ingar <ingar@telenet.be> | 2022-02-13 13:14:40 +0100 |
|---|---|---|
| committer | Ingar <ingar@telenet.be> | 2022-02-13 13:14:40 +0100 |
| commit | f886626e84b99eacda30baf8ce3e2827e8bb6cc7 (patch) | |
| tree | 08a49193a75155b75b1ec582c570a933479c3317 /systemd | |
| parent | ff5568b707349d452350f7a37a9bdb89d6213ff0 (diff) | |
Added systemd service files to control LED status during boot.
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/led-boot.service | 10 | ||||
| -rw-r--r-- | systemd/led-ready.service | 10 | ||||
| -rw-r--r-- | systemd/led-reboot.service | 10 | ||||
| -rw-r--r-- | systemd/led-shutdown.service | 11 |
4 files changed, 41 insertions, 0 deletions
diff --git a/systemd/led-boot.service b/systemd/led-boot.service new file mode 100644 index 0000000..5112f8b --- /dev/null +++ b/systemd/led-boot.service @@ -0,0 +1,10 @@ +[Unit] +Description=ledctl to indicate boot in progress status. +After=local-fs.target + +[Service] +Type=simple +ExecStart=/usr/bin/ledctl boot + +[Install] +WantedBy=multi-user.target diff --git a/systemd/led-ready.service b/systemd/led-ready.service new file mode 100644 index 0000000..79544ed --- /dev/null +++ b/systemd/led-ready.service @@ -0,0 +1,10 @@ +[Unit] +Description=ledctl indicate ready status +After=multi-user.target + +[Service] +Type=simple +ExecStart=/usr/bin/ledctl ready + +[Install] +WantedBy=graphical.target diff --git a/systemd/led-reboot.service b/systemd/led-reboot.service new file mode 100644 index 0000000..4214d9c --- /dev/null +++ b/systemd/led-reboot.service @@ -0,0 +1,10 @@ +[Unit] +Description=ledctl to indicate reboot in progress status. +DefaultDependencies=no + +[Service] +Type=simple +ExecStart=/usr/bin/ledctl boot + +[Install] +WantedBy=reboot.target diff --git a/systemd/led-shutdown.service b/systemd/led-shutdown.service new file mode 100644 index 0000000..07fc163 --- /dev/null +++ b/systemd/led-shutdown.service @@ -0,0 +1,11 @@ +[Unit] +Description=ledctl to indicate shut down status. +DefaultDependencies=no + +[Service] +Type=simple +ExecStart=/usr/bin/ledctl off + +[Install] +WantedBy=halt.target shutdown.target + |
