diff options
author | Bill Nottingham <notting@redhat.com> | 1999-03-15 23:31:13 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-03-15 23:31:13 +0000 |
commit | bc24993efd5dd2e9af769b85b0825c6290a08764 (patch) | |
tree | 2c6d44204623c044feaf603548d7164b479d9d02 /setsysfont | |
parent | 38037a852b2022510f7dfa46a410814f33b47843 (diff) | |
download | initscripts-bc24993efd5dd2e9af769b85b0825c6290a08764.tar initscripts-bc24993efd5dd2e9af769b85b0825c6290a08764.tar.gz initscripts-bc24993efd5dd2e9af769b85b0825c6290a08764.tar.bz2 initscripts-bc24993efd5dd2e9af769b85b0825c6290a08764.tar.xz initscripts-bc24993efd5dd2e9af769b85b0825c6290a08764.zip |
work with SYSFONTACM and use consolechars from console-tools
Diffstat (limited to 'setsysfont')
-rwxr-xr-x | setsysfont | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 |