summaryrefslogtreecommitdiffstats
path: root/abs/core/fbsplash/fbsplash.initcpio_install
blob: 3fdd7e951eba85e1145800bfa92c1615045278ba (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

install() {
	[ -x /sbin/fbcondecor_helper ] || return 1

	source /etc/conf.d/fbsplash.conf
	[ -z "${THEME}" ] && THEME="linhes"

	add_binary "/sbin/fbcondecor_helper"	

	add_device "/dev/null" c 1 3
	add_device "/dev/console" c 5 1
	add_device "/dev/tty0" c 4 0

	for DIR in /dev /dev/fb /dev/misc /dev/vc /lib/splash/proc /lib/splash/sys
	do
		add_dir ${DIR}
	done

	for THEME in ${THEMES}
	do
		add_full_dir "/etc/splash/${THEME}"
	done
}

help() {
	echo "This hook includes Fbsplash in the initramfs image."
}

#EOF