Set fonts in init-early.sh, don't stop services twice when shutting down and lock prefixed output.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
DIR = /$(LIB)/rcscripts/sh
|
||||
EXES = init.sh
|
||||
EXES = init.sh init-early.sh
|
||||
|
||||
TOPDIR = ..
|
||||
include $(TOPDIR)/default.mk
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user