aboutsummaryrefslogtreecommitdiffstats
path: root/setsysfont
blob: 463739bb64294fc9ef6f1ff9fc440452d1ded5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

if [ -f /etc/sysconfig/i18n ]; then
  . /etc/sysconfig/i18n
fi

if [ -x /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
    /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
    /usr/bin/setfont $SYSFONT
#  else
#    /usr/bin/setfont
  fi
else
  echo "can't set font"
  exit 1
fi
exit 0