From bc24993efd5dd2e9af769b85b0825c6290a08764 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 15 Mar 1999 23:31:13 +0000 Subject: work with SYSFONTACM and use consolechars from console-tools --- setsysfont | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/setsysfont b/setsysfont index 2cff7a0c..1903b601 100755 --- a/setsysfont +++ b/setsysfont @@ -4,8 +4,18 @@ if [ -f /etc/sysconfig/i18n ]; then . /etc/sysconfig/i18n fi -if [ -x /usr/bin/setfont ]; then - +if [ -x /usr/bin/consolechars ]; then + if [ -n "$SYSFONT" ]; then + ARGS=$SYSFONT + if [ -n "$UNIMAP" ]; then + ARGS="$ARGS --sfm $UNIMAP" + fi + if [ -n "$SYSFONTACM" ]; then + ARGS="$ARGS --acm $SYSFONTACM" + fi + /usr/bin/consolechars -f $ARGS + fi +elif [ -x /usr/bin/setfont ]; then if [ -n "$SYSFONT" -a -n "$UNIMAP" ]; then /usr/bin/setfont $SYSFONT -u $UNIMAP elif [ -n "$SYSFONT" ]; then @@ -13,8 +23,8 @@ if [ -x /usr/bin/setfont ]; then # else # /usr/bin/setfont fi - else echo "can't set font" exit 1 fi +exit 0 -- cgit v1.2.1