summaryrefslogtreecommitdiffstats
path: root/modules.d/slx-splash/module-setup.sh
blob: e1282d5ddc39285de976111b36561d3d62458097 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
check() {
	# Tell dracut that this module should only be included if it is required
	# explicitly.
	return 255
}
depends() {
	echo slx-drm busybox
}
install() {
	cp "$moddir/data/splash.ppm.gz" "$initdir/etc/splash.ppm.gz"
	inst_hook pre-trigger 10 "$moddir/scripts/slx-splash.sh"
	inst_hook pre-pivot 00 "$moddir/scripts/slx-splash-exam.sh"
	inst_hook pre-pivot 20 "$moddir/scripts/restore-cursor.sh"
}