aboutsummaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-07-26 15:34:02 +0000
committerBill Nottingham <notting@redhat.com>2001-07-26 15:34:02 +0000
commite064cff911a5367fec39dfd3656722da19a16ea2 (patch)
tree3b1bb8a75f2132d5c6664df4c6cfc267040153a1 /setsysfont
parent84ca82c03dbf4014c9fde781dcc0d976cbe6b9ea (diff)
downloadinitscripts-e064cff911a5367fec39dfd3656722da19a16ea2.tar
initscripts-e064cff911a5367fec39dfd3656722da19a16ea2.tar.gz
initscripts-e064cff911a5367fec39dfd3656722da19a16ea2.tar.bz2
initscripts-e064cff911a5367fec39dfd3656722da19a16ea2.tar.xz
initscripts-e064cff911a5367fec39dfd3656722da19a16ea2.zip
don't use kbd commands
Diffstat (limited to 'setsysfont')
-rwxr-xr-xsetsysfont31
1 files changed, 19 insertions, 12 deletions
diff --git a/setsysfont b/setsysfont
index 330e8fe7..30a0b8bc 100755
--- a/setsysfont
+++ b/setsysfont
@@ -6,18 +6,25 @@ if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi
-[ -z "$SYSFONT" ] && exit 0
-
-if [ -x /bin/setfont -o -x /usr/bin/setfont ]; then
- PARMS="$SYSFONT"
- [ -n "$UNIMAP" ] && PARMS="$PARMS -n $UNIMAP"
- [ -n "$CHARSET" ] && PARMS="$PARMS -m $CHARSET"
- setfont $PARMS
-elif [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then
- ARGS="$SYSFONT"
- [ -n "$UNIMAP" ] && ARGS="$ARGS --sfm $UNIMAP"
- [ -n "$SYSFONTACM" ] && ARGS="$ARGS --acm $SYSFONTACM"
- consolechars -f $ARGS
+if [ -x /bin/consolechars -o -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
+ 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
+ /usr/bin/setfont $SYSFONT
+# else
+# /usr/bin/setfont
+ fi
else
echo $"can't set font"
exit 1