diff options
author | Christian Hesse <mail@eworm.de> | 2022-12-07 23:59:37 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2022-12-08 00:10:53 +0100 |
commit | a38b5f887eb16a2f734cdae63b9dede4941f68e6 (patch) | |
tree | af323628ce2c57bdeb933df467a3d2f366d36dd3 /systemd | |
parent | 1a15f23b96aea0eadcb2937f10dfa020add676b1 (diff) | |
download | mkinitcpio-archlogo-a38b5f887eb16a2f734cdae63b9dede4941f68e6.tar.gz mkinitcpio-archlogo-a38b5f887eb16a2f734cdae63b9dede4941f68e6.tar.zst |
run a script in systemd unit
Diffstat (limited to 'systemd')
-rw-r--r-- | systemd/archlogo | 4 | ||||
-rw-r--r-- | systemd/archlogo.service | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/systemd/archlogo b/systemd/archlogo new file mode 100644 index 0000000..1c05ab7 --- /dev/null +++ b/systemd/archlogo @@ -0,0 +1,4 @@ +#!/bin/sh + +source /etc/archlogo.conf +cat /usr/share/archlogo/"${ARCHLOGO}" diff --git a/systemd/archlogo.service b/systemd/archlogo.service index 60ace62..dc46573 100644 --- a/systemd/archlogo.service +++ b/systemd/archlogo.service @@ -7,6 +7,4 @@ Before=sysinit.target systemd-ask-password-console.service Type=oneshot RemainAfterExit=yes StandardOutput=tty -EnvironmentFile=/etc/archlogo.conf -WorkingDirectory=/usr/share/archlogo -ExecStart=/usr/bin/cat "${ARCHLOGO}" +ExecStart=/usr/lib/systemd/scripts/archlogo |