diff options
Diffstat (limited to 'init.d.Linux')
-rwxr-xr-x | init.d.Linux/consolefont | 11 | ||||
-rwxr-xr-x | init.d.Linux/keymaps | 6 |
2 files changed, 6 insertions, 11 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 diff --git a/init.d.Linux/keymaps b/init.d.Linux/keymaps index eab90552..0de5833e 100755 --- a/init.d.Linux/keymaps +++ b/init.d.Linux/keymaps @@ -58,10 +58,10 @@ start() { [ -n "${DUMPKEYS_CHARSET}" ] && dumpkey_opts="-c ${DUMPKEYS_CHARSET}" dumpkeys ${dumpkey_opts} | loadkeys --unicode - termencoding='\033%%G' + termencoding="%G" termmsg="UTF-8" else - termencoding='\033(K' + termencoding="(K" termmsg="ASCII" fi local n=1 ttydev= @@ -70,7 +70,7 @@ start() { || ttydev=/dev/tty ebegin "Setting terminal encoding to" ${termmsg} while [ ${n} -le "${RC_TTY_NUMBER}" ] ; do - printf "${termencoding}" >"${ttydev}${n}" + printf "\033%s" "${termencoding}" >"${ttydev}${n}" n=$((${n} + 1)) done eend 0 |