init.d/rc.conf: make unicode default to yes

This commit is contained in:
William Hubbs 2023-03-07 00:48:26 -06:00
parent 5ae4d4edb5
commit b9241988a7
4 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@
# There variables are shared between many init scripts
# Set unicode to NO to turn off unicode support for keyboards and screens.
unicode="YES"
#unicode="YES"
# This is how long fuser should wait for a remote server to respond. The
# default is 60 seconds, but it can be adjusted here.

View File

@ -42,7 +42,7 @@ start()
fi
local wkeys= kmode="-a" msg="ASCII"
if yesno $unicode; then
if yesno ${unicode:-yes}; then
kmode="-u"
msg="UTF-8"
fi

View File

@ -25,7 +25,7 @@ start()
# Save the encoding for use immediately at boot
if checkpath -W "$RC_LIBEXECDIR"; then
mkdir -p "$RC_LIBEXECDIR"/console
if yesno ${unicode:-${UNICODE}}; then
if yesno ${unicode:-yes}; then
echo "" > "$RC_LIBEXECDIR"/console/unicode
else
rm -f "$RC_LIBEXECDIR"/console/unicode

View File

@ -28,7 +28,7 @@ start()
# Set terminal encoding to either ASCII or UNICODE.
# See utf-8(7) for more information.
local termencoding="%@" termmsg="ASCII"
if yesno ${unicode}; then
if yesno ${unicode:-yes}; then
termencoding="%G"
termmsg="UTF-8"
fi
@ -43,7 +43,7 @@ start()
# Save the encoding for use immediately at boot
if checkpath -W "$RC_LIBEXECDIR"; then
mkdir -p "$RC_LIBEXECDIR"/console
if yesno ${unicode:-${UNICODE}}; then
if yesno ${unicode:-yes}; then
echo "" > "$RC_LIBEXECDIR"/console/unicode
else
rm -f "$RC_LIBEXECDIR"/console/unicode