aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hook/archlogo5
-rw-r--r--install/archlogo6
-rw-r--r--systemd/archlogo.service11
3 files changed, 15 insertions, 7 deletions
diff --git a/hook/archlogo b/hook/archlogo
deleted file mode 100644
index a9d7e82..0000000
--- a/hook/archlogo
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-run_earlyhook() {
- cat < /archlogo
-}
diff --git a/install/archlogo b/install/archlogo
index c2f77ea..0b1fb48 100644
--- a/install/archlogo
+++ b/install/archlogo
@@ -2,8 +2,10 @@
build() {
source /etc/archlogo.conf
- add_file "/usr/share/archlogo/${ARCHLOGO}" /archlogo
- add_runscript
+ add_file /etc/archlogo.conf
+ add_file "/usr/share/archlogo/${ARCHLOGO}"
+ add_systemd_unit archlogo.service
+ add_symlink "/usr/lib/systemd/systemd/sysinit.target.wants/archlogo.service" "../archlogo.service"
}
help() {
diff --git a/systemd/archlogo.service b/systemd/archlogo.service
new file mode 100644
index 0000000..37601bc
--- /dev/null
+++ b/systemd/archlogo.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Archlogo
+DefaultDependencies=no
+Before=sysinit.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+StandardOutput=tty
+EnvironmentFile=/etc/archlogo.conf
+ExecStart=/usr/bin/cat "/usr/share/archlogo/${ARCHLOGO}"