diff options
Diffstat (limited to 'pcr/mkinitcpio-paralogo/install/paralogo')
-rwxr-xr-x | pcr/mkinitcpio-paralogo/install/paralogo | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pcr/mkinitcpio-paralogo/install/paralogo b/pcr/mkinitcpio-paralogo/install/paralogo new file mode 100755 index 000000000..d1f5d2118 --- /dev/null +++ b/pcr/mkinitcpio-paralogo/install/paralogo @@ -0,0 +1,30 @@ +#!/bin/sh + +build() { + source /etc/paralogo.conf + add_file /etc/paralogo.conf + add_file "/usr/share/paralogo/${PARALOGO}" + if add_systemd_unit paralogo.service 2>/dev/null; then + add_symlink "/usr/lib/systemd/system/sysinit.target.wants/paralogo.service" "../paralogo.service" + else + add_runscript + systemctl enable paralogo.service + fi +} +#mkinitcpio() { +# source /etc/mkinitcpio.conf +# add_text /etc/mkinitcpio.conf +# if add_text paralogo 2>/dev/null; then +# add_text sed -e 's|^_d_hooks=.*|_d_hooks=/etc/mkinitcpio.conf:HOOK="paralogo"' +# add_runscript +# mkinitcpio -p linux-libre +# else +# add_runscript +# mkinitcpio -p linux-libre +# fi +#} + + +help() { + echo "This hook adds an Parabola Linux logo to the boot process." +} |