aboutsummaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-02-26 02:37:24 +0000
committerBill Nottingham <notting@redhat.com>2003-02-26 02:37:24 +0000
commit01e080020dbcbf98fdb6505b9b7f54ee43695a78 (patch)
tree928e0c0e7b5a33c1753990fa502e28b6dc15c71e /setsysfont
parent8c679537256a0642c5ea4e634757629eae39261d (diff)
downloadinitscripts-01e080020dbcbf98fdb6505b9b7f54ee43695a78.tar
initscripts-01e080020dbcbf98fdb6505b9b7f54ee43695a78.tar.gz
initscripts-01e080020dbcbf98fdb6505b9b7f54ee43695a78.tar.bz2
initscripts-01e080020dbcbf98fdb6505b9b7f54ee43695a78.tar.xz
initscripts-01e080020dbcbf98fdb6505b9b7f54ee43695a78.zip
handle 7.x sysfontacm settings on the fly (#84183)
Diffstat (limited to 'setsysfont')
-rwxr-xr-xsetsysfont3
1 files changed, 3 insertions, 0 deletions
diff --git a/setsysfont b/setsysfont
index a21bc373..eac0e31c 100755
--- a/setsysfont
+++ b/setsysfont
@@ -28,6 +28,9 @@ elif [ -x /bin/setfont ]; then
ARGS="-u $UNIMAP"
fi
if [ -n "$SYSFONTACM" ]; then
+ if [ ! -f /lib/kbd/consoletrans/$SYSONTACM_to_uni.trans ]; then
+ SYSFONTACM=`echo $SYSFONTACM | sed "|iso0|8859-|g"`
+ fi
ARGS="$ARGS -m $SYSFONTACM"
fi
if [ -n "$SYSFONT" ]; then