diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-06 20:21:11 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-06 20:21:11 +0200 |
commit | fbd4c73cfb5a21261c9df1a0f93d2e2f9db22802 (patch) | |
tree | 24994712db0604aeaafadd9cfb87f9531213d744 | |
parent | e1b7ec4470f551cd7562bd11bec08a371af4822e (diff) | |
download | mkinitcpio-archlogo-fbd4c73cfb5a21261c9df1a0f93d2e2f9db22802.tar.gz mkinitcpio-archlogo-fbd4c73cfb5a21261c9df1a0f93d2e2f9db22802.tar.zst |
readd support for plain old script based initramfs
-rw-r--r-- | hook/archlogo | 6 | ||||
-rw-r--r-- | install/archlogo | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/hook/archlogo b/hook/archlogo new file mode 100644 index 0000000..688b84b --- /dev/null +++ b/hook/archlogo @@ -0,0 +1,6 @@ +#!/bin/sh + +run_earlyhook() { + source /etc/archlogo.conf + cat "/usr/share/archlogo/${ARCHLOGO}" +} diff --git a/install/archlogo b/install/archlogo index db4cc4b..f16c9b1 100644 --- a/install/archlogo +++ b/install/archlogo @@ -4,8 +4,11 @@ build() { source /etc/archlogo.conf add_file /etc/archlogo.conf add_file "/usr/share/archlogo/${ARCHLOGO}" - add_systemd_unit archlogo.service - add_symlink "/usr/lib/systemd/system/sysinit.target.wants/archlogo.service" "../archlogo.service" + if [ add_systemd_unit archlogo.service 2>/dev/null ]; then + add_symlink "/usr/lib/systemd/system/sysinit.target.wants/archlogo.service" "../archlogo.service" + else + add_runscript + fi } help() { |