mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 01:47:15 +08:00
23 lines
541 B
Plaintext
23 lines
541 B
Plaintext
|
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
|
||
|
}
|