diff options
author | Roy Marples <roy@marples.name> | 2007-04-26 08:02:21 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-26 08:02:21 +0000 |
commit | 431e8cc84fe960ec91c3463493ce94df65ef41f2 (patch) | |
tree | a80360e058a6fc33d5040c3fc19541cf7023d87b /init.d.Linux/consolefont | |
parent | c1d6bfc721eff57798317036004b0d87ce85a068 (diff) |
Fix early setting of font
Diffstat (limited to 'init.d.Linux/consolefont')
-rwxr-xr-x | init.d.Linux/consolefont | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/init.d.Linux/consolefont b/init.d.Linux/consolefont index 64003fa5..dc568059 100755 --- a/init.d.Linux/consolefont +++ b/init.d.Linux/consolefont @@ -72,14 +72,9 @@ start() { if [ ${retval} -eq 0 -a -w "${RC_LIBDIR}" ] ; then mkdir -p "${RC_LIBDIR}"/console - # Pipe errors to null as maps may not be in use - /bin/setfont -o "${RC_LIBDIR}"/console/font 2>/dev/null \ - || rm -f "${RC_LIBDIR}"/console/font - /bin/setfont -om "${RC_LIBDIR}"/console/map 2>/dev/null \ - || rm -f "${RC_LIBDIR}"/console/map - /bin/setfont -ou "${RC_LIBDIR}"/console/unimap 2>/dev/null \ - || rm -f "${RC_LIBDIR}"/console/unimap - + for font in /usr/share/consolefonts/"${CONSOLEFONT}".* ; do : ; done + cp "${font}" "${RC_LIBDIR}"/console + echo "$(basename "${font}")" > "${RC_LIBDIR}"/console/font if [ "${UNICODE}" = "yes" ] ; then touch "${RC_LIBDIR}"/console/unicode else |