summaryrefslogtreecommitdiff
path: root/pcr/mkinitcpio-paralogo/install
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-17 15:20:46 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-06-17 15:20:46 +0200
commitfe510040c0bd4b2f6298bf1b049397561bb4fc1d (patch)
tree8afd9b3ebdd7e3042e286c94580ce79d6bb5ea40 /pcr/mkinitcpio-paralogo/install
parented887ea7ccdeab875470d31a7f7fe4884102a439 (diff)
downloadabslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.tar.gz
abslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.tar.bz2
abslibre-fe510040c0bd4b2f6298bf1b049397561bb4fc1d.zip
mkinitcpio-paralogo logo during boot instance
Diffstat (limited to 'pcr/mkinitcpio-paralogo/install')
-rwxr-xr-xpcr/mkinitcpio-paralogo/install/paralogo17
1 files changed, 17 insertions, 0 deletions
diff --git a/pcr/mkinitcpio-paralogo/install/paralogo b/pcr/mkinitcpio-paralogo/install/paralogo
new file mode 100755
index 000000000..e927966aa
--- /dev/null
+++ b/pcr/mkinitcpio-paralogo/install/paralogo
@@ -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."
+}