summaryrefslogtreecommitdiff
path: root/pcr/mkinitcpio-paralogo/install/paralogo
blob: d1f5d211875d43e8b2d6624bfed0168eda4e0084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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."
}