summaryrefslogtreecommitdiff
path: root/pcr/mkinitcpio-paralogo/install
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/mkinitcpio-paralogo/install')
-rwxr-xr-xpcr/mkinitcpio-paralogo/install/paralogo30
-rw-r--r--pcr/mkinitcpio-paralogo/install/paralogo~works17
2 files changed, 47 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."
+}
diff --git a/pcr/mkinitcpio-paralogo/install/paralogo~works b/pcr/mkinitcpio-paralogo/install/paralogo~works
new file mode 100644
index 000000000..e927966aa
--- /dev/null
+++ b/pcr/mkinitcpio-paralogo/install/paralogo~works
@@ -0,0 +1,17 @@
+#!/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
+}
+
+help() {
+ echo "This hook adds an Parabola Linux logo to the boot process."
+}