2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
11 . /sbin/splash-functions.sh
14 if [ -z "${FBCONDECOR_TTYS}" ]; then
15 if [ -n "${RC_TTY_NUMBER}" ]; then
16 FBCONDECOR_TTYS=$(seq 1 "${RC_TTY_NUMBER}")
18 FBCONDECOR_TTYS="1 2 3 4 5 6"
24 # Only do this if the kernel supports fbcondecor.
25 if fbcondecor_supported && [ "${SPLASH_MODE_REQ}" != "off" ]; then
26 ebegin "Setting framebuffer console images"
28 for TTY in ${FBCONDECOR_TTYS} ; do
29 theme="${SPLASH_THEME}"
31 [ ${TTY} = "1" -a -z "$(/usr/sbin/fbcondecor_ctl -c getstate --tty=${TTY}| grep 'off')" ] && continue
32 [ ${TTY} = "0" ] && continue
34 if [ -n "${FBCONDECOR_TTY_MAP}" ]; then
35 for i in ${FBCONDECOR_TTY_MAP} ; do
36 if [ "${i%:*}" = "${TTY}" ]; then
42 if [ -x /usr/bin/openvt ]; then
43 /usr/bin/openvt -c "${TTY}" -- printf "" 2>/dev/null
46 if ! fbcondecor_set_theme "${theme}" "${TTY}"; then
48 eerror "Failed to set background image on tty${TTY}"
49 if [ -z "${FBCONDECOR_TTY_MAP}" ]; then