diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | systemd/archlogo | 4 | ||||
-rw-r--r-- | systemd/archlogo.service | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -7,7 +7,8 @@ all: .PHONY: install install: - # install unit file + # install script and unit file + install -D -m0755 systemd/archlogo $(DESTDIR)/usr/lib/systemd/scripts/archlogo install -D -m0644 systemd/archlogo.service $(DESTDIR)/usr/lib/systemd/system/archlogo.service # install install-script and hook for plain old script based initramfs 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 |