core/fbsplash-scripts/fbsplash.initcpio_hook

23 lines
541 B
Plaintext
Raw Normal View History

2010-06-23 17:34:46 +08:00
run_hook ()
{
# don't paint again if we have a fbcondecor patched kernel
[ -e /dev/fbsplash -o -e /dev/fbcondecor ] && return
export SPLASH_MODE_REQ="off"
SPLASH_MESSAGE_INIT="Initializing the Kernel..."
. /etc/conf.d/splash
case ",${splash},"
in *,silent,* ) SPLASH_MODE_REQ=silent
;; *,verbose,* ) SPLASH_MODE_REQ=verbose
esac
[ "${SPLASH_MODE_REQ}" = 'silent' ] || return 0
export BOOT_MSG="${SPLASH_MESSAGE_INIT}"
## use 'init' to get fadein if in cmdline options
/sbin/fbcondecor_helper 2 init 0 0 $SPLASH_THEME
}