/[baselayout]/trunk/sh.Linux/init-early.sh
Gentoo

Contents of /trunk/sh.Linux/init-early.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2815 - (show annotations) (download) (as text)
Sat Aug 4 20:35:05 2007 UTC (7 years, 2 months ago) by uberlord
File MIME type: text/x-sh
File size: 600 byte(s)
Boot properly when we cannot set an early font, #187628.
1 #!/bin/sh
2
3 # Try and set a font and as early as we can
4 if [ -e /etc/runlevels/"${RC_DEFAULTLEVEL}"/consolefont \
5 -o -e /etc/runlevels/"${RC_BOOTLEVEL}"/consolefont ] ; then
6 termencoding="(K"
7 [ -e "${RC_LIBDIR}"/console/unicode ] && termencoding="%G"
8 printf "\033%s" "${termencoding}"
9 if [ -r "${RC_LIBDIR}"/console/font -a -x /bin/setfont ] ; then
10 font="$(cat "${RC_LIBDIR}"/console/font)"
11 CONSOLE="${CONSOLE:-/dev/console}"
12 [ -c "${CONSOLE}" ] && cons="-C ${CONSOLE}"
13 setfont ${cons} "${RC_LIBDIR}"/console/"${font}" 2>/dev/null
14 fi
15 fi
16
17 # Ensure we exit 0 so the boot continues
18 exit 0

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20