Set fonts in init-early.sh, don't stop services twice when shutting down and lock prefixed output.

This commit is contained in:
Roy Marples
2007-04-26 11:24:07 +00:00
parent 431e8cc84f
commit cf9aa106c6
4 changed files with 57 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
DIR = /$(LIB)/rcscripts/sh
EXES = init.sh
EXES = init.sh init-early.sh
TOPDIR = ..
include $(TOPDIR)/default.mk

View File

@@ -86,15 +86,6 @@ get_KV() {
return $?
}
# Try and set a font as early as we can
termencoding="(K"
[ -e "${RC_LIBDIR}"/console/unicode ] && termencoding="%G"
printf "\033%s" "${termencoding}" >/dev/console
if [ -r "${RC_LIBDIR}"/console/font ] ; then
font="$(cat "${RC_LIBDIR}"/console/font)"
setfont -C /dev/console "${RC_LIBDIR}"/console/"${font}"
fi
. /etc/init.d/functions.sh
. "${RC_LIBDIR}"/sh/init-functions.sh
. "${RC_LIBDIR}"/sh/rc-functions.sh