|
Apache/2.2.15 (CentOS) Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64 uid=48(apache) gid=48(apache) groups=48(apache) server ip : 172.67.192.52 | your ip : 10.244.126.0 safemode OFF > / sbin / |
| Filename | /sbin/setsysfont |
| Size | 850 |
| Permission | rwxr-xr-x |
| Owner | apache |
| Create time | 23-Dec-2025 17:41 |
| Last modified | 19-Jun-2018 21:42 |
| Last accessed | 21-Apr-2026 19:31 |
| Actions | edit | rename | delete | download (gzip) |
| View | text | code | image |
#!/bin/sh
PATH=/bin:/usr/bin
if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi
case ${LC_ALL:-${LC_CTYPE-$LANG}} in
*.utf8|*.UTF-8)
if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then
exec unicode_start $SYSFONT $UNIMAP
fi
;;
*)
if /sbin/consoletype fg ; then
# no exec, unicode_stop does not set a font
unicode_stop
fi
;;
esac
if [ -x /bin/setfont ]; then
if [ -n "$UNIMAP" ]; then
ARGS="-u $UNIMAP"
fi
if [ -n "$SYSFONTACM" ]; then
if [ ! -f /lib/kbd/consoletrans/${SYSFONTACM}_to_uni.trans ]; then
SYSFONTACM=$(echo $SYSFONTACM | sed "s|iso0|8859-|g;s|iso|8859-|g")
fi
ARGS="$ARGS -m $SYSFONTACM"
fi
if [ -n "$SYSFONT" ]; then
/bin/setfont $SYSFONT $ARGS
# else
# /bin/setfont
echo -ne "\033(K" 2>/dev/null > /proc/$$/fd/0
fi
fi
exit 0
PATH=/bin:/usr/bin
if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi
case ${LC_ALL:-${LC_CTYPE-$LANG}} in
*.utf8|*.UTF-8)
if [ -x /bin/unicode_start ] && /sbin/consoletype fg ; then
exec unicode_start $SYSFONT $UNIMAP
fi
;;
*)
if /sbin/consoletype fg ; then
# no exec, unicode_stop does not set a font
unicode_stop
fi
;;
esac
if [ -x /bin/setfont ]; then
if [ -n "$UNIMAP" ]; then
ARGS="-u $UNIMAP"
fi
if [ -n "$SYSFONTACM" ]; then
if [ ! -f /lib/kbd/consoletrans/${SYSFONTACM}_to_uni.trans ]; then
SYSFONTACM=$(echo $SYSFONTACM | sed "s|iso0|8859-|g;s|iso|8859-|g")
fi
ARGS="$ARGS -m $SYSFONTACM"
fi
if [ -n "$SYSFONT" ]; then
/bin/setfont $SYSFONT $ARGS
# else
# /bin/setfont
echo -ne "\033(K" 2>/dev/null > /proc/$$/fd/0
fi
fi
exit 0